summaryrefslogtreecommitdiff
path: root/src/cairo-image-surface-private.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-02-12 11:25:07 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2012-02-15 14:37:11 +0000
commitae3319890eacd1c8282ca6df7b263ac74abb5f8d (patch)
tree16b1f4bab9bcd4cbb13f5e15b01696c788d46203 /src/cairo-image-surface-private.h
parent92c0b37d04f9df8df53a455c8e8dda1946c84c87 (diff)
downloadcairo-ae3319890eacd1c8282ca6df7b263ac74abb5f8d.tar.gz
win32: Rebase on the new compositor infrastructure
Try and undo all the damage that has acrued over the years by plugging into the compositor pipeline. References: https://bugs.freedesktop.org/show_bug.cgi?id=42739 References: https://bugs.freedesktop.org/show_bug.cgi?id=42821 References: https://bugs.freedesktop.org/show_bug.cgi?id=33081 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/cairo-image-surface-private.h')
-rw-r--r--src/cairo-image-surface-private.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/cairo-image-surface-private.h b/src/cairo-image-surface-private.h
index 30713a818..3951793c1 100644
--- a/src/cairo-image-surface-private.h
+++ b/src/cairo-image-surface-private.h
@@ -50,6 +50,7 @@ struct _cairo_image_surface {
pixman_image_t *pixman_image;
const cairo_compositor_t *compositor;
+ cairo_surface_t *parent;
pixman_format_code_t pixman_format;
cairo_format_t format;
@@ -64,6 +65,7 @@ struct _cairo_image_surface {
unsigned transparency : 2;
unsigned color : 2;
};
+#define to_image_surface(S) ((cairo_image_surface_t *)(S))
/* A wrapper for holding pixman images returned by create_for_pattern */
typedef struct _cairo_image_source {
@@ -201,6 +203,13 @@ _pixman_image_add_tristrip (pixman_image_t *image,
int dst_x, int dst_y,
cairo_tristrip_t *strip);
+static inline void
+_cairo_image_surface_set_parent (cairo_image_surface_t *image,
+ cairo_surface_t *parent)
+{
+ image->parent = parent;
+}
+
/**
* _cairo_surface_is_image:
* @surface: a #cairo_surface_t