Index: ui/gl/gl_surface_ozone.cc |
diff --git a/ui/gl/gl_surface_ozone.cc b/ui/gl/gl_surface_ozone.cc |
index 3e11e926387ba8350515b31e08b6ac2100913a36..616a01d57e5524f81c378a82ce0d117854c531fc 100644 |
--- a/ui/gl/gl_surface_ozone.cc |
+++ b/ui/gl/gl_surface_ozone.cc |
@@ -17,6 +17,12 @@ 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 (!GLSurfaceEGL::InitializeOneOff()) { |