summaryrefslogtreecommitdiff
path: root/src/cairo-boxes-private.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-07-30 17:28:21 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2011-09-12 08:29:48 +0100
commitaf9fbd176b145f042408ef5391eef2a51d7531f8 (patch)
tree5f75d1087d4325a013af6f0a4204a666fb4ca4f0 /src/cairo-boxes-private.h
parent0540bf384aed344899417d3b0313bd6704679c1c (diff)
downloadcairo-af9fbd176b145f042408ef5391eef2a51d7531f8.tar.gz
Introduce a new compositor architecture
Having spent the last dev cycle looking at how we could specialize the compositors for various backends, we once again look for the commonalities in order to reduce the duplication. In part this is motivated by the idea that spans is a good interface for both the existent GL backend and pixman, and so they deserve a dedicated compositor. xcb/xlib target an identical rendering system and so they should be using the same compositor, and it should be possible to run that same compositor locally against pixman to generate reference tests. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> P.S. This brings massive upheaval (read breakage) I've tried delaying in order to fix as many things as possible but now this one patch does far, far, far too much. Apologies in advance for breaking your favourite backend, but trust me in that the end result will be much better. :)
Diffstat (limited to 'src/cairo-boxes-private.h')
-rw-r--r--src/cairo-boxes-private.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/cairo-boxes-private.h b/src/cairo-boxes-private.h
index 890d1b2d2..57d1228b2 100644
--- a/src/cairo-boxes-private.h
+++ b/src/cairo-boxes-private.h
@@ -42,11 +42,14 @@
struct _cairo_boxes_t {
cairo_status_t status;
+
cairo_box_t limit;
const cairo_box_t *limits;
int num_limits;
+
int num_boxes;
- unsigned int is_pixel_aligned : 1;
+
+ unsigned int is_pixel_aligned;
struct _cairo_boxes_chunk {
struct _cairo_boxes_chunk *next;
@@ -70,6 +73,10 @@ _cairo_boxes_init_for_array (cairo_boxes_t *boxes,
int num_boxes);
cairo_private void
+_cairo_boxes_init_from_rectangle (cairo_boxes_t *boxes,
+ int x, int y, int w, int h);
+
+cairo_private void
_cairo_boxes_limit (cairo_boxes_t *boxes,
const cairo_box_t *limits,
int num_limits);
@@ -81,7 +88,7 @@ _cairo_boxes_add (cairo_boxes_t *boxes,
cairo_private void
_cairo_boxes_extents (const cairo_boxes_t *boxes,
- cairo_rectangle_int_t *extents);
+ cairo_box_t *box);
cairo_private cairo_box_t *
_cairo_boxes_to_array (const cairo_boxes_t *boxes,
@@ -104,6 +111,11 @@ _cairo_boxes_intersect (const cairo_boxes_t *a,
cairo_private void
_cairo_boxes_clear (cairo_boxes_t *boxes);
+cairo_private_no_warn cairo_bool_t
+_cairo_boxes_for_each_box (cairo_boxes_t *boxes,
+ cairo_bool_t (*func) (cairo_box_t *box, void *data),
+ void *data);
+
cairo_private void
_cairo_boxes_fini (cairo_boxes_t *boxes);