[cairo-commit] src/cairo-clip.c

Chris Wilson ickle at kemper.freedesktop.org
Sun Apr 25 04:25:30 PDT 2010


 src/cairo-clip.c |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit 8c72122df51a10a32b56cdf20e5a1037ee59a958
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Sun Apr 25 10:30:12 2010 +0100

    clip: Skip combining with solid pixel aligned boxes.

diff --git a/src/cairo-clip.c b/src/cairo-clip.c
index 6b9ffd2..83cd3bd 100644
--- a/src/cairo-clip.c
+++ b/src/cairo-clip.c
@@ -1212,6 +1212,12 @@ _cairo_clip_combine_with_surface (cairo_clip_t *clip,
 	    return status;
 	}
 
+	if (clip_path->flags & CAIRO_CLIP_PATH_IS_BOX &&
+	    clip_path->path.maybe_fill_region)
+	{
+	    continue;
+	}
+
 	if (need_translate) {
 	    _cairo_path_fixed_translate (&clip_path->path,
 					 _cairo_fixed_from_int (-dst_x),


More information about the cairo-commit mailing list