diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-04-29 15:19:18 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-04-30 10:16:23 +0100 |
commit | 07122f37d11eabe62bc9c81ccbf71bbe8b7a1005 (patch) | |
tree | 7075c26d696f75d006bd273f1482d8346557dc0f /src/cairo-xcb-surface-core.c | |
parent | 4cb733c28551f4a34cd4a225b8d797a55bf9b977 (diff) |
surface: Convert snapshots from an array to a double-linked list.
Saves the memory allocation for the array, and the overhead of
maintaining the area for both insertions and more importantly deletes.
Diffstat (limited to 'src/cairo-xcb-surface-core.c')
-rw-r--r-- | src/cairo-xcb-surface-core.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/cairo-xcb-surface-core.c b/src/cairo-xcb-surface-core.c index d609996e..2a903a07 100644 --- a/src/cairo-xcb-surface-core.c +++ b/src/cairo-xcb-surface-core.c @@ -405,11 +405,7 @@ _cairo_xcb_surface_pixmap (cairo_xcb_surface_t *target, if (unlikely (pixmap->base.status)) return pixmap; - status = _cairo_surface_attach_snapshot (source, &pixmap->base, NULL); - if (unlikely (status)) { - cairo_surface_destroy (&pixmap->base); - return (cairo_xcb_pixmap_t *) _cairo_surface_create_in_error (status); - } + _cairo_surface_attach_snapshot (source, &pixmap->base, NULL); if (pattern->base.extend != CAIRO_EXTEND_NONE) { if (extents->x < 0 || extents->y < 0 || |