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

Unified Diff: ui/gfx/gl/gl_context.cc

Issue 8381001: Split GL binding init into core and extension part (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Added dependencies to gl.gyp. Used NOT_REACHED() instead of DCHECK(0). Created 9 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/gfx/gl/gl_context.h ('k') | ui/gfx/gl/gl_context_cgl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/gl/gl_context.cc
diff --git a/ui/gfx/gl/gl_context.cc b/ui/gfx/gl/gl_context.cc
index 6c25052e1b9de1fa21e6d2b9bf118aa63bcef48a..6053bdb335ba5f973e60a20c7a6171c825baa779 100644
--- a/ui/gfx/gl/gl_context.cc
+++ b/ui/gfx/gl/gl_context.cc
@@ -81,4 +81,15 @@ bool GLContext::WasAllocatedUsingARBRobustness() {
return false;
}
+bool GLContext::InitializeExtensionBindings() {
+ DCHECK(IsCurrent(NULL));
+ static bool initialized = false;
+ if (initialized)
+ return initialized;
+ initialized = InitializeGLExtensionBindings(GetGLImplementation(), this);
+ if (!initialized)
+ LOG(ERROR) << "Could not initialize extension bindings.";
+ return initialized;
+}
+
} // namespace gfx
« no previous file with comments | « ui/gfx/gl/gl_context.h ('k') | ui/gfx/gl/gl_context_cgl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698