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

Unified Diff: x11/x_connection.h

Issue 6793005: Add the xrender backend to the window manager. (Closed) Base URL: ssh://gitrw.chromium.org:9222/window_manager.git@master
Patch Set: Created 9 years, 9 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
Index: x11/x_connection.h
diff --git a/x11/x_connection.h b/x11/x_connection.h
index d18e9e8c45794a800b526578e0f12ecdbc613cde..cc30b374404cf0bb7a40c1b521d3ff255d85d671 100644
--- a/x11/x_connection.h
+++ b/x11/x_connection.h
@@ -15,6 +15,7 @@
#include "base/time.h"
#include "window_manager/geometry.h"
#include "window_manager/image_enums.h"
+#include "window_manager/math_types.h"
#include "window_manager/x11/x_types.h"
namespace window_manager {
@@ -545,6 +546,27 @@ class XConnection {
// to disable automatic window-clearing by the server.
virtual bool SetWindowBackgroundPixmap(XWindow xid, XPixmap pixmap) = 0;
+ // Query the presence of the Render extension
Daniel Erat 2011/04/02 14:54:36 nit: add period at the end of this comment and the
marcheu 2011/04/04 19:55:58 Done.
+ virtual bool RenderQueryExtension() = 0;
+
+ // Create an XRender Picture
+ virtual XPicture RenderCreatePicture(XDrawable drawable, int depth) = 0;
+
+ // Create an XRender Picture from |data|
Daniel Erat 2011/04/02 14:54:36 nit: describe format of |data|
marcheu 2011/04/04 19:55:58 Done.
+ virtual XPixmap CreatePixmapFromData(char* data, const Size& size) = 0;
Daniel Erat 2011/04/02 14:54:36 can you just make this take an ImageContainer inst
marcheu 2011/04/04 19:55:58 Done.
+
+ // Perform an XRender Composite operation
+ virtual void RenderComposite(bool blend, XPicture src, XPicture mask,
+ XPicture dst, Point srcpos, Point maskpos,
+ Matrix4 transform, Size size) = 0;
+
+ // Free an XRender Picture
+ virtual void RenderFreePicture(XPicture pict) = 0;
+
+ // Do an XRender solid fill
+ virtual void RenderFillRectangle(XPicture dst, float red, float green,
+ float blue, Point pos, Size size) = 0;
+
// Value that should be used in event and property |format| fields for
// byte and long arguments.
static const int kByteFormat;
« x11/real_x_connection.cc ('K') | « x11/real_x_connection.cc ('k') | x11/x_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698