[cairo-commit] libsvg-cairo/src svg_cairo_state.c,1.11,1.12
Carl Worth
commit at pdx.freedesktop.org
Fri Jan 14 14:19:05 PST 2005
Committed by: cworth
Update of /cvs/cairo/libsvg-cairo/src
In directory gabe:/tmp/cvs-serv347/src
Modified Files:
svg_cairo_state.c
Log Message:
* src/svg_cairo_state.c (_svg_cairo_state_init_copy): Don't copy
child_surface. This saves huge amounts of time for SVG images with
deep grouping within a group with opacity != 1.0. Thanks to
TOKUNAGA Hiroyuki <tkng at xem.jp>.
Index: svg_cairo_state.c
===================================================================
RCS file: /cvs/cairo/libsvg-cairo/src/svg_cairo_state.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- svg_cairo_state.c 2 Aug 2004 20:16:37 -0000 1.11
+++ svg_cairo_state.c 14 Jan 2005 22:19:03 -0000 1.12
@@ -83,11 +83,8 @@
*state = *other;
- if (other->child_surface)
- state->child_surface = cairo_surface_create_similar (other->child_surface,
- CAIRO_FORMAT_ARGB32,
- state->viewport_width,
- state->viewport_height);
+ /* We don't need our own child_surface at this point. */
+ state->child_surface = NULL;
if (other->font_family)
state->font_family = strdup ((char *) other->font_family);
More information about the cairo-commit
mailing list