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

Jeff Muizelaar jrmuizel at kemper.freedesktop.org
Tue Nov 11 10:26:30 PST 2008


 src/cairo-clip.c |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

New commits:
commit 0a682034a04fa7fc1407e7bc093ae01f4b385ad7
Author: Jeff Muizelaar <jmuizelaar at mozilla.com>
Date:   Tue Nov 11 13:26:09 2008 -0500

    Make the clipping implementation comment clearer
    
    When reviewing the spans changes, I reread this comment and it wasn't as clear
    as it could be.

diff --git a/src/cairo-clip.c b/src/cairo-clip.c
index 93bc151..5bbffd7 100644
--- a/src/cairo-clip.c
+++ b/src/cairo-clip.c
@@ -478,9 +478,10 @@ _cairo_clip_intersect_mask (cairo_clip_t      *clip,
 	I believe the best possible operation would probably an unbounded SRC
 	operator.  Using SRC we could potentially avoid having to initialize
 	the surface which would be ideal from an efficiency point of view.
-	However, _cairo_surface_composite_trapezoids (CAIRO_OPERATOR_SOURCE) is
-	bounded by the mask.
-
+	However, CAIRO_OPERATOR_SOURCE is bounded by the trapezoid mask and
+	_cairo_surface_composite_trapezoids (CAIRO_OPERATOR_SOURCE) will assert
+	because it assumes CAIRO_OPERATOR_SOURCE has been converted into other
+	operations.
     */
 
     surface = _cairo_surface_create_similar_solid (target,


More information about the cairo-commit mailing list