| Index: ui/gfx/gl/gl_surface_egl.cc
|
| diff --git a/ui/gfx/gl/gl_surface_egl.cc b/ui/gfx/gl/gl_surface_egl.cc
|
| index 55cbc556b61b90e733ae34dfd100165fcbaa247a..285f003f162b44cd2e1242aa285cc6ac4d261172 100644
|
| --- a/ui/gfx/gl/gl_surface_egl.cc
|
| +++ b/ui/gfx/gl/gl_surface_egl.cc
|
| @@ -14,7 +14,7 @@
|
| // it brings in #defines that cause conflicts.
|
| #include "ui/gfx/gl/gl_bindings.h"
|
|
|
| -#if defined(OS_LINUX)
|
| +#if defined(USE_X11)
|
| extern "C" {
|
| #include <X11/Xlib.h>
|
| }
|
| @@ -38,7 +38,7 @@ bool GLSurfaceEGL::InitializeOneOff() {
|
| if (initialized)
|
| return true;
|
|
|
| -#ifdef OS_LINUX
|
| +#if defined(USE_X11)
|
| EGLNativeDisplayType native_display = XOpenDisplay(NULL);
|
| #else
|
| EGLNativeDisplayType native_display = EGL_DEFAULT_DISPLAY;
|
|
|