Index: ui/gl/gl_context.h |
diff --git a/ui/gl/gl_context.h b/ui/gl/gl_context.h |
index 0d1aa6d0f40492d74e3f056cc3ffbd53e4a2ef74..4bdf96872e0aa3b4facce98c09ac08ecd58be5b6 100644 |
--- a/ui/gl/gl_context.h |
+++ b/ui/gl/gl_context.h |
@@ -68,6 +68,18 @@ struct GLContextAttribs { |
ContextPriority context_priority = ContextPriorityMedium; |
}; |
+struct GLWorkarounds { |
+ // glClearColor does not always work on Intel 6xxx Mac drivers. See |
+ // crbug.com/710443. |
+ bool clearToBoundaryValuesIsBroken = false; |
Zhenyao Mo
2017/06/20 21:34:17
clear_to_boundary_values_broken
jiajia.qin
2017/06/21 02:47:22
Done.
|
+}; |
+ |
+// Set the GL workarounds. |
+GL_EXPORT void SetGLWorkarounds(const GLWorkarounds& workarounds); |
+ |
+// Get the GL workarounds. |
+GL_EXPORT GLWorkarounds GetGLWorkarounds(); |
+ |
// Encapsulates an OpenGL context, hiding platform specific management. |
class GL_EXPORT GLContext : public base::RefCounted<GLContext> { |
public: |