summaryrefslogtreecommitdiffstats
path: root/chrome/common/x11_util.h
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-30 22:00:16 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-30 22:00:16 +0000
commite9c1e71e71c903cc7f9339bc03ac04c83c0329b5 (patch)
tree5a69954cf01e6309a3cc75647e5be82ecac71645 /chrome/common/x11_util.h
parenta06734fd9ce32954f5eb5a290aed59dfb95e8a30 (diff)
downloadchromium_src-e9c1e71e71c903cc7f9339bc03ac04c83c0329b5.zip
chromium_src-e9c1e71e71c903cc7f9339bc03ac04c83c0329b5.tar.gz
chromium_src-e9c1e71e71c903cc7f9339bc03ac04c83c0329b5.tar.bz2
Make the 0 value of the enum match 'fail' to satisfy DCHECKs.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35392 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/x11_util.h')
-rw-r--r--chrome/common/x11_util.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/common/x11_util.h b/chrome/common/x11_util.h
index 2ca315d..c7a1b67 100644
--- a/chrome/common/x11_util.h
+++ b/chrome/common/x11_util.h
@@ -45,13 +45,13 @@ bool XDisplayExists();
Display* GetXDisplay();
// X shared memory comes in three flavors:
-// 1) SHM pixmaps + putimage,
+// 1) No SHM support,
// 2) SHM putimage,
-// 3) No SHM support.
+// 3) SHM pixmaps + putimage.
enum SharedMemorySupport {
- SHARED_MEMORY_PIXMAP,
+ SHARED_MEMORY_NONE,
SHARED_MEMORY_PUTIMAGE,
- SHARED_MEMORY_NONE
+ SHARED_MEMORY_PIXMAP
};
// Return the shared memory type of our X connection.
SharedMemorySupport QuerySharedMemorySupport(Display* dpy);