| Index: ui/gl/gl_surface_ozone.cc
|
| diff --git a/ui/gl/gl_surface_ozone.cc b/ui/gl/gl_surface_ozone.cc
|
| index 616a01d57e5524f81c378a82ce0d117854c531fc..4ce8fde1bd410e2bf712c189187cf0add7563647 100644
|
| --- a/ui/gl/gl_surface_ozone.cc
|
| +++ b/ui/gl/gl_surface_ozone.cc
|
| @@ -17,14 +17,14 @@ namespace gfx {
|
|
|
| // static
|
| bool GLSurface::InitializeOneOffInternal() {
|
| - if (gfx::SurfaceFactoryOzone::GetInstance()->InitializeHardware() !=
|
| - gfx::SurfaceFactoryOzone::INITIALIZED) {
|
| - LOG(ERROR) << "Ozone failed to initialize hardware";
|
| - return false;
|
| - }
|
| -
|
| switch (GetGLImplementation()) {
|
| case kGLImplementationEGLGLES2:
|
| + if (gfx::SurfaceFactoryOzone::GetInstance()->InitializeHardware() !=
|
| + gfx::SurfaceFactoryOzone::INITIALIZED) {
|
| + LOG(ERROR) << "Ozone failed to initialize hardware";
|
| + return false;
|
| + }
|
| +
|
| if (!GLSurfaceEGL::InitializeOneOff()) {
|
| LOG(ERROR) << "GLSurfaceEGL::InitializeOneOff failed.";
|
| return false;
|
|
|