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

Unified Diff: ui/gl/gl_context.cc

Issue 2934733002: Workaround for Intel 6xxx clear to 0/1 bug (Closed)
Patch Set: rebase and move GLWorkarounds to a member of GLContext 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.cc
diff --git a/ui/gl/gl_context.cc b/ui/gl/gl_context.cc
index 0f3b3561390189453f9c746bfb31a7a43f564546..4fe612a2fb8b835e1ec948d435e972081a6b78cb 100644
--- a/ui/gl/gl_context.cc
+++ b/ui/gl/gl_context.cc
@@ -44,6 +44,18 @@ void GLContext::ScopedReleaseCurrent::Cancel() {
canceled_ = true;
}
+GLWorkarounds GLContext::gl_workarounds_;
+
+// static
+void GLContext::SetGLWorkarounds(const GLWorkarounds& workarounds) {
+ gl_workarounds_ = workarounds;
+}
+
+// static
+GLWorkarounds GLContext::GetGLWorkarounds() {
+ return gl_workarounds_;
+}
+
GLContext::GLContext(GLShareGroup* share_group) : share_group_(share_group) {
if (!share_group_.get())
share_group_ = new gl::GLShareGroup();
« ui/gl/gl_context.h ('K') | « ui/gl/gl_context.h ('k') | ui/gl/gl_gl_api_implementation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698