| Index: ui/gl/gl_surface_x11.cc
|
| diff --git a/ui/gl/gl_surface_x11.cc b/ui/gl/gl_surface_x11.cc
|
| index 54c7f438829c13d5132500de38dc00b5eca9ee15..74ad999e2b2f5b1e8997e4e8537df79f1e989938 100644
|
| --- a/ui/gl/gl_surface_x11.cc
|
| +++ b/ui/gl/gl_surface_x11.cc
|
| @@ -9,6 +9,7 @@
|
| #include "base/memory/scoped_ptr.h"
|
| #include "base/message_loop/message_loop.h"
|
| #include "third_party/mesa/src/include/GL/osmesa.h"
|
| +#include "ui/gfx/native_widget_types.h"
|
| #include "ui/gl/gl_bindings.h"
|
| #include "ui/gl/gl_implementation.h"
|
| #include "ui/gl/gl_surface_egl.h"
|
| @@ -293,6 +294,7 @@ scoped_refptr<GLSurface> GLSurface::CreateViewGLSurface(
|
| return surface;
|
| }
|
| case kGLImplementationEGLGLES2: {
|
| + DCHECK(window != gfx::kNullAcceleratedWidget);
|
| scoped_refptr<GLSurface> surface(new NativeViewGLSurfaceEGL(window));
|
| if (!surface->Initialize())
|
| return NULL;
|
|
|