diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2008-11-20 23:19:19 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2008-11-21 09:40:42 +0000 |
commit | f15b1f26becf28457e9ccf8903257a0dec25d547 (patch) | |
tree | 12477eb8bd0f1e9d681b2cc4c8a2434305247feb /src/cairo-xlib-surface-private.h | |
parent | 9d2c55c661885c06eed44e810004c2ebe07038d3 (diff) |
[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.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-xlib-surface-private.h b/src/cairo-xlib-surface-private.h index 87be9e6a..fe37e5fb 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; |