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

Unified Diff: ui/surface/transport_dib.h

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: ui/surface/transport_dib.h
diff --git a/ui/surface/transport_dib.h b/ui/surface/transport_dib.h
index 1d5410df25d7bc8a9a5dd3c64c0766346a04bd94..7ec7bb815f7c2c769d59a1d6d7163dc178c1ecf4 100644
--- a/ui/surface/transport_dib.h
+++ b/ui/surface/transport_dib.h
@@ -16,6 +16,7 @@
#include <windows.h>
#elif defined(TOOLKIT_GTK)
#include "ui/base/x/x11_util.h"
+#include "ui/gfx/x/x11_types.h"
#endif
class SkCanvas;
@@ -189,7 +190,7 @@ class SURFACE_EXPORT TransportDIB {
#if defined(TOOLKIT_GTK)
// Map the shared memory into the X server and return an id for the shared
// segment.
- XID MapToX(Display* connection);
+ XID MapToX(XDisplay* connection);
void IncreaseInFlightCounter() { inflight_counter_++; }
// Decreases the inflight counter, and deletes the transport DIB if it is
@@ -211,7 +212,7 @@ class SURFACE_EXPORT TransportDIB {
Id key_; // SysV shared memory id
void* address_; // mapped address
XSharedMemoryId x_shm_; // X id for the shared segment
- Display* display_; // connection to the X server
+ XDisplay* display_; // connection to the X server
size_t inflight_counter_; // How many requests to the X server are in flight
bool detached_; // If true, delete the transport DIB when it is idle
#else

Powered by Google App Engine
This is Rietveld 408576698