[cairo-commit] cairo/test Makefile.am, 1.15, 1.16 linear_gradient-ref.png, NONE, 1.1 linear_gradient.c, NONE, 1.1

Owen Taylor commit at pdx.freedesktop.org
Sun Mar 6 12:05:25 PST 2005


Committed by: otaylor

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

Modified Files:
	Makefile.am 
Added Files:
	linear_gradient-ref.png linear_gradient.c 
Log Message:
2005-03-06  Owen Taylor  <otaylor at redhat.com>

        * src/cairo_pattern.c (_cairo_image_data_set_linear): Comment
        and clean up the gradient computation.
        (_cairo_linear_pattern_classify): Determine if a linear
        gradient is horizontal or vertical.
        (_cairo_pattern_acquire_surface_for_gradient): Optimize
        horizontal/vertical gradients with a repeating surface.

        * test/linear_gradient.c: Test case for linear gradients
        at angles and with a rotated pattern matrix.


Index: Makefile.am
===================================================================
RCS file: /cvs/cairo/cairo/test/Makefile.am,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- Makefile.am	7 Feb 2005 17:38:43 -0000	1.15
+++ Makefile.am	6 Mar 2005 20:05:23 -0000	1.16
@@ -3,6 +3,7 @@
 fill_rule		\
 leaky_polygon		\
 line_width		\
+linear_gradient		\
 move_to_show_surface	\
 text_cache_crash	\
 text_rotate		\
@@ -17,6 +18,7 @@
 fill_rule-ref.png		\
 leaky_polygon-ref.png		\
 line_width-ref.png		\
+linear_gradient-ref.png		\
 move_to_show_surface-ref.png	\
 coverage-ref.png		\
 clip_twice-ref.png		\
@@ -68,6 +70,7 @@
 fill_rule_SOURCES = fill_rule.c $(cairo_test_lib)
 leaky_polygon_SOURCES = leaky_polygon.c $(cairo_test_lib)
 line_width_SOURCES = line_width.c $(cairo_test_lib)
+linear_gradient_SOURCES = linear_gradient.c $(cairo_test_lib)
 move_to_show_surface_SOURCES = move_to_show_surface.c $(cairo_test_lib)
 text_cache_crash_SOURCES = text_cache_crash.c $(cairo_test_lib)
 text_rotate_SOURCES = text_rotate.c $(cairo_test_lib)

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

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




More information about the cairo-commit mailing list