gl_workarounds.h 644 B

123456789101112131415161718192021
  1. // Copyright 2017 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef UI_GL_GL_WORKAROUNDS_H_
  5. #define UI_GL_GL_WORKAROUNDS_H_
  6. namespace gl {
  7. struct GLWorkarounds {
  8. // glClearColor does not always work on Intel 6xxx Mac drivers. See
  9. // crbug.com/710443.
  10. bool clear_to_zero_or_one_broken = false;
  11. // Reset texImage2D base level to workaround pixel comparison failure
  12. // above Mac OS 10.12.4 on Intel Mac. See crbug.com/705865.
  13. bool reset_teximage2d_base_level = false;
  14. };
  15. } // namespace gl
  16. #endif // UI_GL_GL_WORKAROUNDS_H_