[cairo-commit] cairo/test Makefile.am, 1.56, 1.57 pdf-clip.c, NONE, 1.1

Kristian Hogsberg commit at pdx.freedesktop.org
Tue Jun 14 19:45:25 PDT 2005


Committed by: krh

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

Modified Files:
	Makefile.am 
Added Files:
	pdf-clip.c 
Log Message:
2005-06-14  Kristian Høgsberg  <krh at redhat.com>

        * src/cairo-gstate-private.h:
        * src/cairo-gstate.c: (_cairo_gstate_init),
        (_cairo_gstate_init_copy), (_cairo_gstate_fini),
        (_cairo_gstate_set_clip), (_composite_trap_region),
        (_cairo_gstate_fill), (_cairo_gstate_reset_clip),
        (_cairo_gstate_intersect_clip_path), (_cairo_clip_path_reference),
        (_cairo_clip_path_destroy), (_cairo_gstate_intersect_clip_region),
        (_cairo_gstate_intersect_clip_mask), (_cairo_gstate_clip):
        * src/cairo-pdf-surface.c:
        (_cairo_pdf_surface_create_for_document),
        (_cairo_pdf_path_move_to), (_cairo_pdf_path_line_to),
        (_cairo_pdf_path_close_path), (_cairo_pdf_surface_fill_path),
        (_cairo_pdf_surface_intersect_clip_path),
        (_cairo_pdf_document_add_page):
        * src/cairo-surface.c: (_cairo_surface_get_clip_mode),
        (_cairo_surface_fill_path), (_cairo_surface_reset_clip),
        (_cairo_surface_set_clip_path_recursive),
        (_cairo_surface_set_clip_path):
        * src/cairoint.h: Implement path clipping and refactor
        _cairo_gstate_clip() out in three different functions
        corresponding to the three different clipping modes.

        * src/cairo-glitz-surface.c:
        * src/cairo-ps-surface.c:
        * src/cairo-win32-surface.c:
        * src/cairo-xcb-surface.c:
        * src/cairo-xlib-surface.c:
        * src/cairo-image-surface.c:
        * src/cairo-quartz-surface.c: Add NULL pointers for
        intersect_clip_path.

        * test/Makefile.am:
        * test/pdf-clip.c: New test case to exercise PDF clipping code.


Index: Makefile.am
===================================================================
RCS file: /cvs/cairo/cairo/test/Makefile.am,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -d -r1.56 -r1.57
--- Makefile.am	9 Jun 2005 14:26:40 -0000	1.56
+++ Makefile.am	15 Jun 2005 02:45:23 -0000	1.57
@@ -35,7 +35,7 @@
 rel-path
 
 if CAIRO_HAS_PDF_SURFACE
-TESTS += pdf-surface
+TESTS += pdf-surface pdf-clip
 endif
 
 if CAIRO_HAS_PS_SURFACE
@@ -148,6 +148,7 @@
 paint_with_alpha_LDADD = $(LDADDS)
 path_data_LDADD = $(LDADDS)
 pdf_surface_LDADD = $(LDADDS)
+pdf_clip_LDADD = $(LDADDS)
 ps_surface_LDADD = $(LDADDS)
 pixman_rotate_LDADD = $(LDADDS)
 scale_source_surface_paint_LDADD = $(LDADDS)
@@ -171,4 +172,10 @@
 noinst_PROGRAMS = imagediff
 imagediff_LDADD = $(LDADDS)
 
-CLEANFILES = *-out.png *-diff.png *.log ps-surface.ps pdf-surface.pdf
+CLEANFILES =					\
+	*-out.png				\
+	*-diff.png				\
+	*.log					\
+	ps-surface.ps				\
+	pdf-surface.pdf				\
+	pdf-clip.pdf

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




More information about the cairo-commit mailing list