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

Unified Diff: chrome/common/x11_util_internal.h

Issue 27147: Linux: server side backing stores (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/common/x11_util.cc ('k') | chrome/test/perf/perftests.scons » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/x11_util_internal.h
diff --git a/chrome/common/x11_util_internal.h b/chrome/common/x11_util_internal.h
new file mode 100644
index 0000000000000000000000000000000000000000..1a7b6048cd26f77d54a1c391deac644c7d122dd2
--- /dev/null
+++ b/chrome/common/x11_util_internal.h
@@ -0,0 +1,31 @@
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_COMMON_X11_UTIL_INTERNAL_H_
+#define CHROME_COMMON_X11_UTIL_INTERNAL_H_
+
+// This file declares utility functions for X11 (Linux only).
+//
+// These functions require the inclusion of the Xlib headers. Since the Xlib
+// headers pollute so much of the namespace, this should only be included
+// when needed.
+
+extern "C" {
+#include <X11/Xlib.h>
+#include <X11/extensions/XShm.h>
+#include <X11/extensions/Xrender.h>
+}
+
+namespace x11_util {
+ // These functions cache their results and must be called from the UI thread.
+ // Currently they don't support multiple screens/displays.
+
+ // Get the XRENDER format id for ARGB32 (Skia's format).
+ XRenderPictFormat* GetRenderARGB32Format(Display* dpy);
+ // Get the XRENDER format id for the default visual on the first screen. This
+ // is the format which our GTK window will have.
+ XRenderPictFormat* GetRenderVisualFormat(Display* dpy, Visual* visual);
+};
+
+#endif // CHROME_COMMON_X11_UTIL_H_
« no previous file with comments | « chrome/common/x11_util.cc ('k') | chrome/test/perf/perftests.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698