summaryrefslogtreecommitdiff
path: root/src/cairo-xlib-surface-private.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2008-11-20 23:19:19 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2008-11-21 09:40:42 +0000
commitf15b1f26becf28457e9ccf8903257a0dec25d547 (patch)
tree12477eb8bd0f1e9d681b2cc4c8a2434305247feb /src/cairo-xlib-surface-private.h
parent9d2c55c661885c06eed44e810004c2ebe07038d3 (diff)
downloadcairo-f15b1f26becf28457e9ccf8903257a0dec25d547.tar.gz
[region] Use the caller supplied array for extracting boxes.
Allow the user to pass in a pre-allocated array and use it if the number of boxes permits. This eliminates the frequent allocations during clipping by toolkits.
Diffstat (limited to 'src/cairo-xlib-surface-private.h')
-rw-r--r--src/cairo-xlib-surface-private.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-xlib-surface-private.h b/src/cairo-xlib-surface-private.h
index 87be9e6a9..fe37e5fbd 100644
--- a/src/cairo-xlib-surface-private.h
+++ b/src/cairo-xlib-surface-private.h
@@ -86,7 +86,7 @@ struct _cairo_xlib_surface {
unsigned int clip_dirty;
cairo_bool_t have_clip_rects;
cairo_bool_t gc_has_clip_rects;
- XRectangle embedded_clip_rects[4];
+ XRectangle embedded_clip_rects[8];
XRectangle *clip_rects;
int num_clip_rects;