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

Unified Diff: ui/gfx/gl/gl_implementation_linux.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_implementation.cc ('k') | ui/gfx/gl/gl_implementation_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/gl/gl_implementation_linux.cc
diff --git a/ui/gfx/gl/gl_implementation_linux.cc b/ui/gfx/gl/gl_implementation_linux.cc
index 568edeba6ddf19968ce726f7dbd43fe34303e263..952e62e5d068255a4a45c8d3d5e324544a6861c0 100644
--- a/ui/gfx/gl/gl_implementation_linux.cc
+++ b/ui/gfx/gl/gl_implementation_linux.cc
@@ -179,6 +179,31 @@ bool InitializeGLBindings(GLImplementation implementation) {
return true;
}
+bool InitializeGLExtensionBindings(GLImplementation implementation,
+ GLContext* context) {
+ switch (implementation) {
+ case kGLImplementationOSMesaGL:
+ InitializeGLExtensionBindingsGL(context);
+ InitializeGLExtensionBindingsOSMESA(context);
+ break;
+ case kGLImplementationDesktopGL:
+ InitializeGLExtensionBindingsGL(context);
+ InitializeGLExtensionBindingsGLX(context);
+ break;
+ case kGLImplementationEGLGLES2:
+ InitializeGLExtensionBindingsGL(context);
+ InitializeGLExtensionBindingsEGL(context);
+ break;
+ case kGLImplementationMockGL:
+ InitializeGLExtensionBindingsGL(context);
+ break;
+ default:
+ return false;
+ }
+
+ return true;
+}
+
void InitializeDebugGLBindings() {
InitializeDebugGLBindingsEGL();
InitializeDebugGLBindingsGL();
« no previous file with comments | « ui/gfx/gl/gl_implementation.cc ('k') | ui/gfx/gl/gl_implementation_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698