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

Unified Diff: ui/gfx/gl/gl_implementation.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.cc
===================================================================
--- ui/gfx/gl/gl_implementation.cc (revision 113194)
+++ ui/gfx/gl/gl_implementation.cc (working copy)
@@ -21,6 +21,9 @@
} kGLImplementationNamePairs[] = {
{ kGLImplementationDesktopName, kGLImplementationDesktopGL },
{ kGLImplementationOSMesaName, kGLImplementationOSMesaGL },
+#if defined(OS_MACOSX)
+ { kGLImplementationAppleName, kGLImplementationAppleGL },
+#endif
{ kGLImplementationEGLName, kGLImplementationEGLGLES2 },
{ kGLImplementationMockName, kGLImplementationMockGL }
};
@@ -46,6 +49,7 @@
switch (GetGLImplementation()) {
case kGLImplementationDesktopGL:
case kGLImplementationOSMesaGL:
+ case kGLImplementationAppleGL:
case kGLImplementationMockGL:
return true;
case kGLImplementationEGLGLES2:
@@ -86,7 +90,8 @@
bool HasDesktopGLFeatures() {
return kGLImplementationDesktopGL == g_gl_implementation ||
- kGLImplementationOSMesaGL == g_gl_implementation;
+ kGLImplementationOSMesaGL == g_gl_implementation ||
+ kGLImplementationAppleGL == g_gl_implementation;
}
void AddGLNativeLibrary(base::NativeLibrary library) {

Powered by Google App Engine
This is Rietveld 408576698