[Pixman] [PATCH 3/6] Add src, mask, and dest flags to the composite args struct.
Taekyun Kim
podain77 at gmail.com
Thu Sep 22 04:53:20 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 8b06531..d283e1e 100644
--- a/pixman/pixman-private.h
+++ b/pixman/pixman-private.h
@@ -373,6 +373,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 87f5a93..8ff78e9 100644
--- a/pixman/pixman.c
+++ b/pixman/pixman.c
@@ -804,6 +804,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 (®ion, &n);
--
1.7.1
More information about the Pixman
mailing list