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

Unified Diff: chrome/common/x11_util.h

Issue 27227: Linux: support displays without Xrender support. (Closed)
Patch Set: ... Created 11 years, 10 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 | « chrome/browser/renderer_host/render_widget_host_view_gtk.cc ('k') | chrome/common/x11_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/x11_util.h
diff --git a/chrome/common/x11_util.h b/chrome/common/x11_util.h
index 6e5072bfd818dde3b261b614dc7614fee846e6a1..4800a69d759408d8f04f1c9c188a6cd98b1a51ee 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.
« no previous file with comments | « chrome/browser/renderer_host/render_widget_host_view_gtk.cc ('k') | chrome/common/x11_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698