summaryrefslogtreecommitdiffstats
path: root/chrome/common/x11_util.h
diff options
context:
space:
mode:
authoragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-26 23:18:22 +0000
committeragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-26 23:18:22 +0000
commit8ab8ff072cbfb539f594425233a3805367733e42 (patch)
tree4e55550442aca6b6a3729ca0b121864ca9710735 /chrome/common/x11_util.h
parent76d2816ad27088432ce9d946facfaa091151dcf6 (diff)
downloadchromium_src-8ab8ff072cbfb539f594425233a3805367733e42.zip
chromium_src-8ab8ff072cbfb539f594425233a3805367733e42.tar.gz
chromium_src-8ab8ff072cbfb539f594425233a3805367733e42.tar.bz2
Linux: support displays without Xrender support.
VNC servers don't support Xrender. For this use case, we implement a slow fallback which byte-fiddles the Skia bitmaps as needed to support 32 and 24 bit visuals. Review URL: http://codereview.chromium.org/27227 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10523 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/x11_util.h')
-rw-r--r--chrome/common/x11_util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/common/x11_util.h b/chrome/common/x11_util.h
index 6e5072b..4800a69 100644
--- a/chrome/common/x11_util.h
+++ b/chrome/common/x11_util.h
@@ -27,6 +27,8 @@ namespace x11_util {
Display* GetXDisplay();
// Return true iff the connection supports X shared memory
bool QuerySharedMemorySupport(Display* dpy);
+ // Return true iff the display supports Xrender
+ bool QueryRenderSupport(Display* dpy);
// These functions do not cache their results
@@ -37,6 +39,8 @@ namespace x11_util {
// Get a Visual from the given widget. Since we don't include the Xlib
// headers, this is returned as a void*.
void* GetVisualFromGtkWidget(GtkWidget*);
+ // Return the number of bits-per-pixel for a pixmap of the given depth
+ int BitsPerPixelForPixmapDepth(Display*, int depth);
// Return a handle to a server side pixmap. |shared_memory_key| is a SysV
// IPC key. The shared memory region must contain 32-bit pixels.