[Pixman] [PATCH 2/5] Add src, mask, and dest flags to the composite args struct.

Taekyun Kim podain77 at gmail.com
Tue Aug 30 05:48:38 PDT 2011


From: Søren Sandmann Pedersen <ssp at redhat.com>

These flags are useful in the various compositing routines, and the
flags stored in the image structs are missing some bits of information
that can only be computed when pixman_image_composite() is called.
---
 pixman/pixman-private.h |    4 ++++
 pixman/pixman.c         |    3 +++
 2 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/pixman/pixman-private.h b/pixman/pixman-private.h
index 3c82c6b..21e84ac 100644
--- a/pixman/pixman-private.h
+++ b/pixman/pixman-private.h
@@ -360,6 +360,10 @@ typedef struct
     int32_t                  dest_y;
     int32_t                  width;
     int32_t                  height;
+
+    uint32_t                 src_flags;
+    uint32_t                 mask_flags;
+    uint32_t                 dest_flags;
 } pixman_composite_info_t;
 
 #define PIXMAN_COMPOSITE_ARGS(info)					\
diff --git a/pixman/pixman.c b/pixman/pixman.c
index 75b80c0..6c40fd1 100644
--- a/pixman/pixman.c
+++ b/pixman/pixman.c
@@ -776,6 +776,9 @@ pixman_image_composite32 (pixman_op_t      op,
 	info.src_image = src;
 	info.mask_image = mask;
 	info.dest_image = dest;
+	info.src_flags = src_flags;
+	info.mask_flags = mask_flags;
+	info.dest_flags = dest_flags;
 
 	pbox = pixman_region32_rectangles (&region, &n);
 
-- 
1.7.1



More information about the Pixman mailing list