| 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 f1d075048a45d2c5f97cb92cea7d668af3fd2b78..001d63413ae38b31710d6890d97e37cc502dcf02 100644
|
| --- a/ui/gfx/gl/gl_surface_egl.cc
|
| +++ b/ui/gfx/gl/gl_surface_egl.cc
|
| @@ -7,6 +7,7 @@
|
| #include "build/build_config.h"
|
| #include "base/logging.h"
|
| #include "base/memory/scoped_ptr.h"
|
| +#include "base/message_loop.h"
|
| #if !defined(OS_ANDROID)
|
| #include "third_party/angle/include/EGL/egl.h"
|
| #include "third_party/angle/include/EGL/eglext.h"
|
| @@ -56,7 +57,7 @@ bool GLSurfaceEGL::InitializeOneOff() {
|
| #if defined(USE_WAYLAND)
|
| g_native_display = ui::WaylandDisplay::Connect(NULL)->display();
|
| #elif defined(USE_X11)
|
| - g_native_display = XOpenDisplay(NULL);
|
| + g_native_display = base::MessagePumpForUI::GetDefaultXDisplay();
|
| #else
|
| g_native_display = EGL_DEFAULT_DISPLAY;
|
| #endif
|
|
|