| 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..ac846c6e6c6e149a36af86ec2ed1e79eb8a5f7f3 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_ == kNullAcceleratedWidget) {
|
| + LOG(ERROR) << "Trying to create surface without window.";
|
| + return false;
|
| + }
|
| +
|
| if (!GetDisplay()) {
|
| LOG(ERROR) << "Trying to create surface with invalid display.";
|
| return false;
|
|
|