summaryrefslogtreecommitdiff
path: root/src/cairo-types-private.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-01-19 17:11:55 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2010-01-22 23:01:51 +0000
commitae25f1c360b79f0b7b1bb73e9ebc47eb794d8007 (patch)
tree1e8275333922a32bf5f22bdf42a3a44751085adb /src/cairo-types-private.h
parent9cd9137843f8f1c3d32bedb6510259ab3638a2c5 (diff)
downloadcairo-ae25f1c360b79f0b7b1bb73e9ebc47eb794d8007.tar.gz
Alter definition of cairo_composite_rectangles_t
This is a more useful definition that is able to individually track the rectangles that compose the composite operation. This will be used by the specialist compositors as a means to perform the common extents determination for an operation.
Diffstat (limited to 'src/cairo-types-private.h')
-rw-r--r--src/cairo-types-private.h24
1 files changed, 1 insertions, 23 deletions
diff --git a/src/cairo-types-private.h b/src/cairo-types-private.h
index 051a0ae10..f4f600c64 100644
--- a/src/cairo-types-private.h
+++ b/src/cairo-types-private.h
@@ -47,6 +47,7 @@
typedef struct _cairo_array cairo_array_t;
typedef struct _cairo_backend cairo_backend_t;
typedef struct _cairo_cache cairo_cache_t;
+typedef struct _cairo_composite_rectangles cairo_composite_rectangles_t;
typedef struct _cairo_clip cairo_clip_t;
typedef struct _cairo_clip_path cairo_clip_path_t;
typedef struct _cairo_color cairo_color_t;
@@ -214,29 +215,6 @@ typedef struct _cairo_point_int {
#define CAIRO_RECT_INT_MIN (INT_MIN >> CAIRO_FIXED_FRAC_BITS)
#define CAIRO_RECT_INT_MAX (INT_MAX >> CAIRO_FIXED_FRAC_BITS)
-/* Rectangles that take part in a composite operation.
- *
- * This defines four translations that define which pixels of the
- * source pattern, mask, clip and destination surface take part in a
- * general composite operation. The idea is that the pixels at
- *
- * (i,j)+(src.x, src.y) of the source,
- * (i,j)+(mask.x, mask.y) of the mask,
- * (i,j)+(clip.x, clip.y) of the clip and
- * (i,j)+(dst.x, dst.y) of the destination
- *
- * all combine together to form the result at (i,j)+(dst.x,dst.y),
- * for i,j ranging in [0,width) and [0,height) respectively.
- */
-typedef struct _cairo_composite_rectangles {
- cairo_point_int_t src;
- cairo_point_int_t mask;
- cairo_point_int_t clip;
- cairo_point_int_t dst;
- int width;
- int height;
-} cairo_composite_rectangles_t;
-
typedef enum _cairo_direction {
CAIRO_DIRECTION_FORWARD,
CAIRO_DIRECTION_REVERSE