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

Unified Diff: ui/gl/gl_context.cc

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.cc
diff --git a/ui/gl/gl_context.cc b/ui/gl/gl_context.cc
index 0f3b3561390189453f9c746bfb31a7a43f564546..e1b09b126e450e1a674f22fefa2e28eed9e66835 100644
--- a/ui/gl/gl_context.cc
+++ b/ui/gl/gl_context.cc
@@ -25,13 +25,25 @@
namespace gl {
namespace {
+
base::LazyInstance<base::ThreadLocalPointer<GLContext>>::Leaky
current_context_ = LAZY_INSTANCE_INITIALIZER;
base::LazyInstance<base::ThreadLocalPointer<GLContext>>::Leaky
current_real_context_ = LAZY_INSTANCE_INITIALIZER;
+
+GLWorkarounds gl_workarounds;
Zhenyao Mo 2017/06/20 21:34:17 Sorry. What I mean is the gl_workarounds should be
jiajia.qin 2017/06/21 02:47:22 Done.
+
} // namespace
+void SetGLWorkarounds(const GLWorkarounds& workarounds) {
+ gl_workarounds = workarounds;
+}
+
+GLWorkarounds GetGLWorkarounds() {
+ return gl_workarounds;
+}
+
GLContext::ScopedReleaseCurrent::ScopedReleaseCurrent() : canceled_(false) {}
GLContext::ScopedReleaseCurrent::~ScopedReleaseCurrent() {
« 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