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

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

Issue 8698008: This change adds the apple software renderer as an option on Chrome/Mac. It's enabled by passing... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years 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
Index: ui/gfx/gl/gl_implementation_mac.cc
===================================================================
--- ui/gfx/gl/gl_implementation_mac.cc (revision 113194)
+++ ui/gfx/gl/gl_implementation_mac.cc (working copy)
@@ -20,6 +20,7 @@
void GetAllowedGLImplementations(std::vector<GLImplementation>* impls) {
impls->push_back(kGLImplementationDesktopGL);
+ impls->push_back(kGLImplementationAppleGL);
impls->push_back(kGLImplementationOSMesaGL);
}
@@ -74,7 +75,8 @@
InitializeGLBindingsOSMESA();
break;
}
- case kGLImplementationDesktopGL: {
+ case kGLImplementationDesktopGL:
+ case kGLImplementationAppleGL: {
base::NativeLibrary library = base::LoadNativeLibrary(
FilePath(kOpenGLFrameworkPath), NULL);
if (!library) {
@@ -83,7 +85,7 @@
}
AddGLNativeLibrary(library);
- SetGLImplementation(kGLImplementationDesktopGL);
+ SetGLImplementation(implementation);
InitializeGLBindingsGL();
break;
@@ -109,6 +111,7 @@
InitializeGLExtensionBindingsOSMESA(context);
break;
case kGLImplementationDesktopGL:
+ case kGLImplementationAppleGL:
InitializeGLExtensionBindingsGL(context);
break;
case kGLImplementationMockGL:

Powered by Google App Engine
This is Rietveld 408576698