| Index: trunk/src/ui/gl/gl_surface_egl.cc
|
| ===================================================================
|
| --- trunk/src/ui/gl/gl_surface_egl.cc (revision 247809)
|
| +++ trunk/src/ui/gl/gl_surface_egl.cc (working copy)
|
| @@ -784,15 +784,15 @@
|
|
|
| // static
|
| bool GLSurface::InitializeOneOffInternal() {
|
| - switch (GetGLImplementation()) {
|
| - case kGLImplementationEGLGLES2:
|
| - if (!GLSurfaceEGL::InitializeOneOff()) {
|
| - LOG(ERROR) << "GLSurfaceEGL::InitializeOneOff failed.";
|
| - return false;
|
| - }
|
| - default:
|
| - break;
|
| + if (GetGLImplementation() == kGLImplementationOSMesaGL) {
|
| + return true;
|
| }
|
| + DCHECK(GetGLImplementation() == kGLImplementationEGLGLES2);
|
| +
|
| + if (!GLSurfaceEGL::InitializeOneOff()) {
|
| + LOG(ERROR) << "GLSurfaceEGL::InitializeOneOff failed.";
|
| + return false;
|
| + }
|
| return true;
|
| }
|
|
|
|
|