[cairo-commit] cairo/test Makefile.am, 1.28, 1.29 trap-clip-ref.png, NONE, 1.1 trap-clip.c, NONE, 1.1

Owen Taylor commit at pdx.freedesktop.org
Wed Apr 13 11:23:45 PDT 2005


Committed by: otaylor

Update of /cvs/cairo/cairo/test
In directory gabe:/tmp/cvs-serv1992/test

Modified Files:
	Makefile.am 
Added Files:
	trap-clip-ref.png trap-clip.c 
Log Message:
2005-04-13  Owen Taylor  <otaylor at redhat.com>

        * src/cairoint.h src/cairo-traps.c: Add _cairo_traps_extract_region
        for converting trapezoids into a pixman region.

        * src/cairo-gstate.c (cairo_clip): Represent all rectangular
        pixel-aligned regions as regions, not just single rectangles.

        * src/cairo-gstate.c (_cairo_gstate_clip_and_composite_trapezoid):
        Split into manageable pieces, optimize rectangular pixel-
        aligned regions by using _cairo_surface_fill_rectangles()
        or _cairo_surface_set_clip_region() as appropriate.

        * tests/trap-clip.c tests/trap-clip-ref.png tests/Makefile.am:
        Add a test for trapezoids clipping.

        * doc/public/cairo-docs.xml: Add an index.


Index: Makefile.am
===================================================================
RCS file: /cvs/cairo/cairo/test/Makefile.am,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- Makefile.am	11 Apr 2005 21:04:56 -0000	1.28
+++ Makefile.am	13 Apr 2005 18:23:43 -0000	1.29
@@ -15,6 +15,7 @@
 text-rotate		\
 transforms		\
 translate-show-surface	\
+trap-clip		\
 user-data
 
 # And all new tests go here too. I really don't like having to repeat
@@ -33,7 +34,8 @@
 pixman-rotate-ref.png		\
 romedalen.png			\
 transforms-ref.png		\
-translate-show-surface-ref.png
+translate-show-surface-ref.png	\
+trap-clip-ref.png
 
 # Once we can draw the text-rotate.c test case correctly, we should
 # create and add text-rotate-ref.png to the list of reference PNGs.
@@ -92,6 +94,7 @@
 text_rotate_LDADD = $(LDADDS)
 transforms_LDADD = $(LDADDS)
 translate_show_surface_LDADD = $(LDADDS)
+trap_clip_LDADD = $(LDADDS)
 user_data_LDADD = $(LDADDS)
 
 noinst_PROGRAMS = imagediff

--- NEW FILE: trap-clip-ref.png ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: trap-clip.c ---
(This appears to be a binary file; contents omitted.)




More information about the cairo-commit mailing list