diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-30 01:19:28 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-30 01:19:28 +0000 |
commit | b1ba8f54cf21578eae695dc557b4af854c3a654c (patch) | |
tree | c934f66c8c50dbdb0e9e9f10fd72bb05f15845a1 /chrome/common/x11_util.h | |
parent | 4940f82919cc7028f10131f9e1af33a3e29750f0 (diff) | |
download | chromium_src-b1ba8f54cf21578eae695dc557b4af854c3a654c.zip chromium_src-b1ba8f54cf21578eae695dc557b4af854c3a654c.tar.gz chromium_src-b1ba8f54cf21578eae695dc557b4af854c3a654c.tar.bz2 |
linux: fix X SharedMemory API types and comments
Some functions actually return a ShmSeg, not an XID.
Review URL: http://codereview.chromium.org/519024
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35359 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/x11_util.h')
-rw-r--r-- | chrome/common/x11_util.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/chrome/common/x11_util.h b/chrome/common/x11_util.h index 1b6f23b..234ca7f 100644 --- a/chrome/common/x11_util.h +++ b/chrome/common/x11_util.h @@ -21,6 +21,7 @@ typedef struct _GdkDrawable GdkWindow; typedef struct _GtkWidget GtkWidget; typedef struct _GtkWindow GtkWindow; typedef unsigned long XID; +typedef unsigned long XSharedMemoryId; // ShmSeg in the X headers. typedef struct _XDisplay Display; namespace base { @@ -102,10 +103,10 @@ bool GetXWindowStack(std::vector<XID>* windows); // window. void RestackWindow(XID window, XID sibling, bool above); -// Return a handle to a server side pixmap. |shared_memory_key| is a SysV +// Return a handle to a X ShmSeg. |shared_memory_key| is a SysV // IPC key. The shared memory region must contain 32-bit pixels. -XID AttachSharedMemory(Display* display, int shared_memory_support); -void DetachSharedMemory(Display* display, XID shmseg); +XSharedMemoryId AttachSharedMemory(Display* display, int shared_memory_support); +void DetachSharedMemory(Display* display, XSharedMemoryId shmseg); // Return a handle to an XRender picture where |pixmap| is a handle to a // pixmap containing Skia ARGB data. |