summaryrefslogtreecommitdiff
path: root/src/cairo-compositor-private.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-01-11 13:10:56 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2013-01-11 13:18:26 +0000
commit503b6b9e2ea65805a77d527c00cf242ec86d479b (patch)
tree0c9b506f677f2e0aa63268cb81291f9b254c4d19 /src/cairo-compositor-private.h
parent1bcd59ef4c9dceaefa51ec6db1f5240d75940724 (diff)
xlib: Only fallback through the mask intermediate if we can composite the mask
Before rendering into the mask, we should first check whether the subsequent call to composite the mask will trigger a fallback. In that case, we should fallback earlier and do the operation in place. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/cairo-compositor-private.h')
-rw-r--r--src/cairo-compositor-private.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cairo-compositor-private.h b/src/cairo-compositor-private.h
index e5ad3671..01997233 100644
--- a/src/cairo-compositor-private.h
+++ b/src/cairo-compositor-private.h
@@ -129,6 +129,9 @@ struct cairo_mask_compositor {
cairo_boxes_t *boxes);
cairo_int_status_t
+ (*check_composite) (const cairo_composite_rectangles_t *extents);
+
+ cairo_int_status_t
(*composite) (void *dst,
cairo_operator_t op,
cairo_surface_t *src,