[cairo-commit] src/cairo-recording-surface.c

Chris Wilson ickle at kemper.freedesktop.org
Fri Jul 29 04:07:52 PDT 2011


 src/cairo-recording-surface.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit c1b0e73578fe2528c8e68e309fd602acaef42e67
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Fri Jul 29 12:06:02 2011 +0100

    record: Only reduce fill+stroke if the clip doesn't change between the commands
    
    Pointed out by Adrian Johnson.
    
    Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

diff --git a/src/cairo-recording-surface.c b/src/cairo-recording-surface.c
index 6ad276e..bb9b2dd 100644
--- a/src/cairo-recording-surface.c
+++ b/src/cairo-recording-surface.c
@@ -1323,7 +1323,9 @@ _cairo_recording_surface_replay_internal (cairo_recording_surface_t	*surface,
 		if (stroke_command != NULL &&
 		    stroke_command->header.type == CAIRO_COMMAND_STROKE &&
 		    _cairo_path_fixed_equal (&command->fill.path,
-					     &stroke_command->stroke.path))
+					     &stroke_command->stroke.path) &&
+		    _cairo_clip_equal (command->header.clip,
+				       stroke_command->header.clip))
 		{
 		    status = _cairo_surface_wrapper_fill_stroke (&wrapper,
 								 command->header.op,


More information about the cairo-commit mailing list