Index: ui/base/x/x11_util.cc |
diff --git a/ui/base/x/x11_util.cc b/ui/base/x/x11_util.cc |
index b2b5ef4b82ac39f9abdd21520b7526864eccaf99..4bfd5c7ee9f9d8222c2a4f42e6a3f7252a6a7d79 100644 |
--- a/ui/base/x/x11_util.cc |
+++ b/ui/base/x/x11_util.cc |
@@ -300,6 +300,15 @@ SharedMemorySupport QuerySharedMemorySupport(XDisplay* dpy) { |
return shared_memory_support; |
} |
+bool QueryRenderSupport(Display* dpy) { |
+ int dummy; |
+ // We don't care about the version of Xrender since all the features which |
+ // we use are included in every version. |
+ static bool render_supported = XRenderQueryExtension(dpy, &dummy, &dummy); |
+ |
+ return render_supported; |
+} |
+ |
::Cursor GetXCursor(int cursor_shape) { |
if (!cursor_cache) |
cursor_cache = new XCursorCache; |