| 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;
|
|
|