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

Unified Diff: ui/gl/gl_context.cc

Issue 1390083002: Revert of ui: Add GLImage unit test framework. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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
« no previous file with comments | « ui/gl/gl_api_unittest.cc ('k') | ui/gl/gl_gl_api_implementation.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_context.cc
diff --git a/ui/gl/gl_context.cc b/ui/gl/gl_context.cc
index 42dadd2a69d35357487f1ea2a64045378e9602ab..ada2127d5075d538b295dd87537076b4b2a5cd96 100644
--- a/ui/gl/gl_context.cc
+++ b/ui/gl/gl_context.cc
@@ -206,7 +206,10 @@
bool GLContext::InitializeDynamicBindings() {
DCHECK(IsCurrent(nullptr));
- bool initialized = InitializeDynamicGLBindings(GetGLImplementation(), this);
+ static bool initialized = false;
+ if (initialized)
+ return initialized;
+ initialized = InitializeDynamicGLBindings(GetGLImplementation(), this);
if (!initialized)
LOG(ERROR) << "Could not initialize dynamic bindings.";
return initialized;
« no previous file with comments | « ui/gl/gl_api_unittest.cc ('k') | ui/gl/gl_gl_api_implementation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698