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

Unified Diff: ui/surface/transport_dib.h

Issue 13985039: Rationalize linux vs x11 in ui (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix review / try issues Created 7 years, 8 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
« no previous file with comments | « ui/gl/gl_surface_x11.cc ('k') | ui/surface/transport_dib_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/surface/transport_dib.h
diff --git a/ui/surface/transport_dib.h b/ui/surface/transport_dib.h
index 9057bb6eee6f24c6310f6880bb24035a0ea2bf70..535567aec016a3ffffa7a2233d4f035cc19e018c 100644
--- a/ui/surface/transport_dib.h
+++ b/ui/surface/transport_dib.h
@@ -14,7 +14,8 @@
#if defined(OS_WIN)
#include <windows.h>
-#elif defined(TOOLKIT_GTK) || (defined(OS_LINUX) && defined(USE_AURA))
+#elif defined(TOOLKIT_GTK) || \
+ (defined(OS_LINUX) && defined(USE_AURA) && defined(USE_X11))
#include "ui/base/x/x11_util.h"
#endif
@@ -80,7 +81,8 @@ class SURFACE_EXPORT TransportDIB {
static int fake_handle = 10;
return reinterpret_cast<Handle>(fake_handle++);
}
-#elif defined(TOOLKIT_GTK) || (defined(OS_LINUX) && defined(USE_AURA))
+#elif defined(TOOLKIT_GTK) || \
+ (defined(OS_LINUX) && defined(USE_AURA) && defined(USE_X11))
typedef int Handle; // These two ints are SysV IPC shared memory keys
struct Id {
// Ensure that default initialized Ids are invalid.
@@ -186,7 +188,8 @@ class SURFACE_EXPORT TransportDIB {
// wire to give this transport DIB to another process.
Handle handle() const;
-#if defined(TOOLKIT_GTK) || (defined(OS_LINUX) && defined(USE_AURA))
+#if defined(TOOLKIT_GTK) || \
+ (defined(OS_LINUX) && defined(USE_AURA) && defined(USE_X11))
// Map the shared memory into the X server and return an id for the shared
// segment.
XID MapToX(Display* connection);
@@ -207,7 +210,8 @@ class SURFACE_EXPORT TransportDIB {
// Verifies that the dib can hold a canvas of the requested dimensions.
bool VerifyCanvasSize(int w, int h);
-#if defined(TOOLKIT_GTK) || (defined(OS_LINUX) && defined(USE_AURA))
+#if defined(TOOLKIT_GTK) || \
+ (defined(OS_LINUX) && defined(USE_AURA) && defined(USE_X11))
Id key_; // SysV shared memory id
void* address_; // mapped address
XSharedMemoryId x_shm_; // X id for the shared segment
« no previous file with comments | « ui/gl/gl_surface_x11.cc ('k') | ui/surface/transport_dib_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698