Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1672)

Unified Diff: ui/gl/gl_context.h

Issue 2934733002: Workaround for Intel 6xxx clear to 0/1 bug (Closed)
Patch Set: rebase and move workarounds to gl_context Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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:

Powered by Google App Engine
This is Rietveld 408576698