Add src, mask, and dest flags to the composite args struct.
authorSøren Sandmann Pedersen <ssp@redhat.com>
Mon, 27 Jun 2011 21:17:04 +0000 (21:17 +0000)
committerTaekyun Kim <tkq.kim@samsung.com>
Mon, 10 Oct 2011 03:18:21 +0000 (12:18 +0900)
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
pixman/pixman.c

index 741fa7eaaaa1f19c482d59ecf39752b1940751b1..c315220c325060cf70169807efcd456073e17510 100644 (file)
@@ -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)                                    \
index 87f5a933a9695d6e9a5a34cd40c27629f93e9861..8ff78e99640180630d12d883b9125c547d485267 100644 (file)
@@ -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 (&region, &n);