Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(27)

Unified Diff: content/plugin/webplugin_proxy.cc

Issue 23460052: Move XID, XDisplay, GetXDisplay and a few other types to ui/gfx/x/x11_types.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/plugin/webplugin_proxy.cc
diff --git a/content/plugin/webplugin_proxy.cc b/content/plugin/webplugin_proxy.cc
index 92edf70b0be8bc8ce04862a795a846b59c05e6a9..ecdab988d9723c9fbd55e3ca79356d1ddde681cf 100644
--- a/content/plugin/webplugin_proxy.cc
+++ b/content/plugin/webplugin_proxy.cc
@@ -75,7 +75,7 @@ WebPluginProxy::WebPluginProxy(
// If the X server supports SHM pixmaps
// and the color depth and masks match,
// then consider using SHM pixmaps for windowless plugin painting.
- Display* display = ui::GetXDisplay();
+ XDisplay* display = gfx::GetXDisplay();
if (ui::QuerySharedMemorySupport(display) == ui::SHARED_MEMORY_PIXMAP &&
ui::BitsPerPixelForPixmapDepth(
display, DefaultDepth(display, DefaultScreen(display))) == 32) {
@@ -92,9 +92,9 @@ WebPluginProxy::WebPluginProxy(
WebPluginProxy::~WebPluginProxy() {
#if defined(USE_X11)
if (windowless_shm_pixmaps_[0] != None)
- XFreePixmap(ui::GetXDisplay(), windowless_shm_pixmaps_[0]);
+ XFreePixmap(gfx::GetXDisplay(), windowless_shm_pixmaps_[0]);
if (windowless_shm_pixmaps_[1] != None)
- XFreePixmap(ui::GetXDisplay(), windowless_shm_pixmaps_[1]);
+ XFreePixmap(gfx::GetXDisplay(), windowless_shm_pixmaps_[1]);
#endif
#if defined(OS_MACOSX)
@@ -557,7 +557,7 @@ void WebPluginProxy::CreateShmPixmapFromDIB(
const gfx::Rect& window_rect,
XID* pixmap_out) {
if (dib) {
- Display* display = ui::GetXDisplay();
+ XDisplay* display = gfx::GetXDisplay();
XID root_window = ui::GetX11RootWindow();
XShmSegmentInfo shminfo = {0};

Powered by Google App Engine
This is Rietveld 408576698