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

Unified Diff: ui/gl/init/gl_initializer_win.cc

Issue 2629633003: Refactor GL bindings so there is no global GLApi or DriverGL. (Closed)
Patch Set: rebase Created 3 years, 11 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/init/gl_initializer_ozone.cc ('k') | ui/gl/init/gl_initializer_x11.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/init/gl_initializer_win.cc
diff --git a/ui/gl/init/gl_initializer_win.cc b/ui/gl/init/gl_initializer_win.cc
index 89a3586dc1cf313b4b0d9624f4d2166c8375ce3a..6116bfbd9a4b604ec2c5f0e8f80fd04fd9d0c386 100644
--- a/ui/gl/init/gl_initializer_win.cc
+++ b/ui/gl/init/gl_initializer_win.cc
@@ -250,6 +250,7 @@ bool InitializeGLOneOffPlatform() {
break;
case kGLImplementationOSMesaGL:
case kGLImplementationMockGL:
+ case kGLImplementationStubGL:
break;
default:
NOTREACHED();
@@ -277,7 +278,8 @@ bool InitializeStaticGLBindings(GLImplementation implementation) {
case kGLImplementationDesktopGL:
return InitializeStaticWGLInternal();
case kGLImplementationMockGL:
- SetGLImplementation(kGLImplementationMockGL);
+ case kGLImplementationStubGL:
+ SetGLImplementation(implementation);
InitializeStaticGLBindingsGL();
return true;
default:
« no previous file with comments | « ui/gl/init/gl_initializer_ozone.cc ('k') | ui/gl/init/gl_initializer_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698