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

Unified Diff: ui/gl/gl_implementation.cc

Issue 16894002: Unset GL Api when releasing a context. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
« ui/gl/gl_bindings.h ('K') | « ui/gl/gl_gl_api_implementation.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_implementation.cc
diff --git a/ui/gl/gl_implementation.cc b/ui/gl/gl_implementation.cc
index 7fe648675d84bb2c05f952f96183ef34c52afbaf..63c57bc7c968c6623561583ead3998abb3a0cadb 100644
--- a/ui/gl/gl_implementation.cc
+++ b/ui/gl/gl_implementation.cc
@@ -63,7 +63,8 @@ bool ExportsCoreFunctionsFromGetProcAddress(GLImplementation implementation) {
}
-GLApi* g_current_gl_context;
+base::LazyInstance<base::ThreadLocalPointer<GLApi> > g_current_gl_context_tls =
+ LAZY_INSTANCE_INITIALIZER;
OSMESAApi* g_current_osmesa_context;
#if defined(OS_WIN)
« ui/gl/gl_bindings.h ('K') | « ui/gl/gl_gl_api_implementation.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698