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(); |