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

Unified Diff: ui/gfx/gl/gl_surface_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_surface_mac.cc
===================================================================
--- ui/gfx/gl/gl_surface_mac.cc (revision 113194)
+++ ui/gfx/gl/gl_surface_mac.cc (working copy)
@@ -22,6 +22,7 @@
bool GLSurface::InitializeOneOffInternal() {
switch (GetGLImplementation()) {
case kGLImplementationDesktopGL:
+ case kGLImplementationAppleGL:
if (!GLSurfaceCGL::InitializeOneOff()) {
LOG(ERROR) << "GLSurfaceCGL::InitializeOneOff failed.";
return false;
@@ -41,7 +42,8 @@
return NULL;
switch (GetGLImplementation()) {
- case kGLImplementationDesktopGL: {
+ case kGLImplementationDesktopGL:
+ case kGLImplementationAppleGL: {
scoped_refptr<GLSurface> surface(new GLSurfaceNSView(window));
if (!surface->Initialize())
return NULL;
@@ -74,7 +76,8 @@
return surface;
}
- case kGLImplementationDesktopGL: {
+ case kGLImplementationDesktopGL:
+ case kGLImplementationAppleGL: {
scoped_refptr<GLSurface> surface(new PbufferGLSurfaceCGL(size));
if (!surface->Initialize())
return NULL;

Powered by Google App Engine
This is Rietveld 408576698