Chromium Code Reviews| Index: ui/gl/gl_surface_egl.cc |
| diff --git a/ui/gl/gl_surface_egl.cc b/ui/gl/gl_surface_egl.cc |
| index 7d216c140f778778a9b6ae3cafb9464b09254190..e9c50b41e121b1c5dc6a03ef18d4f407dbbf2fa6 100644 |
| --- a/ui/gl/gl_surface_egl.cc |
| +++ b/ui/gl/gl_surface_egl.cc |
| @@ -224,6 +224,11 @@ NativeViewGLSurfaceEGL::NativeViewGLSurfaceEGL(bool software, |
| bool NativeViewGLSurfaceEGL::Initialize() { |
| DCHECK(!surface_); |
| + if (!window_) { |
|
no sievers
2013/01/28 20:55:06
if (window_ == kNullAcceleratedWidget)
|
| + LOG(ERROR) << "Trying to create surface without window."; |
| + return false; |
| + } |
| + |
| if (!GetDisplay()) { |
| LOG(ERROR) << "Trying to create surface with invalid display."; |
| return false; |