| Index: ui/gfx/gl/gl_surface_glx.cc
|
| diff --git a/ui/gfx/gl/gl_surface_glx.cc b/ui/gfx/gl/gl_surface_glx.cc
|
| index 3b8cbe9a789d1071ce9886171c4eedd9c0f7531d..57043bc47a9dcbbe16617dd526bc920ae1d4922a 100644
|
| --- a/ui/gfx/gl/gl_surface_glx.cc
|
| +++ b/ui/gfx/gl/gl_surface_glx.cc
|
| @@ -11,6 +11,7 @@ extern "C" {
|
| #include "base/basictypes.h"
|
| #include "base/logging.h"
|
| #include "base/memory/scoped_ptr.h"
|
| +#include "base/message_loop.h"
|
| #include "base/process_util.h"
|
| #include "third_party/mesa/MesaLib/include/GL/osmesa.h"
|
| #include "ui/base/x/x11_util.h"
|
| @@ -48,7 +49,7 @@ bool GLSurfaceGLX::InitializeOneOff() {
|
| if (initialized)
|
| return true;
|
|
|
| - g_display = XOpenDisplay(NULL);
|
| + g_display = base::MessagePumpForUI::GetDefaultXDisplay();
|
| if (!g_display) {
|
| LOG(ERROR) << "XOpenDisplay failed.";
|
| return false;
|
|
|