Index: ui/gl/gl_image_glx.cc |
diff --git a/ui/gl/gl_image_glx.cc b/ui/gl/gl_image_glx.cc |
index b68a5fe5a068b4f66d49754135d496502f9375ef..4b7e883781cd8160e6bc6c49d38be238088fc6bd 100644 |
--- a/ui/gl/gl_image_glx.cc |
+++ b/ui/gl/gl_image_glx.cc |
@@ -12,6 +12,7 @@ extern "C" { |
#include "base/logging.h" |
#include "base/memory/scoped_ptr.h" |
#include "base/message_loop/message_loop.h" |
+#include "ui/gfx/x/x11_types.h" |
#include "ui/gl/gl_bindings.h" |
#include "ui/gl/gl_surface_glx.h" |
@@ -43,7 +44,7 @@ int TextureFormat(int depth) { |
} // namespace anonymous |
GLImageGLX::GLImageGLX(gfx::PluginWindowHandle window) |
- : display_(base::MessagePumpForUI::GetDefaultXDisplay()), |
+ : display_(gfx::GetXDisplay()), |
window_(window), |
pixmap_(0), |
glx_pixmap_(0) {} |