[cairo-commit] cairo-perl Cairo.xs, 1.18, 1.19 CairoSurface.xs, 1.18, 1.19 ChangeLog, 1.53, 1.54

Torsten Schoenfeld commit at pdx.freedesktop.org
Sat Mar 17 09:13:40 PDT 2007


Committed by: tsch

Update of /cvs/cairo/cairo-perl
In directory kemper:/tmp/cvs-serv2116

Modified Files:
	Cairo.xs CairoSurface.xs ChangeLog 
Log Message:
	* Cairo.xs
	* t/Cairo.t: Wrap cairo_get_scaled_font.

	* CairoSurface.xs
	* t/CairoSurface.t: Re-add the binding for cairo_surface_finish.
	It was orignally removed because its effect can also be achieved
	by destroying the surface or letting it go out of scope.  But
	Oleksandr Alex Protasenko convinced me that it's still a good idea
	to have it anyway, mainly for paginated surfaces like PDF and PS
	which defer rendering as long as they can.  With $surf->finish you
	can more clearly express what you're intending to do than with
	$surf = undef.

	* examples/png-streams.pl: Fix indention.


Index: Cairo.xs
===================================================================
RCS file: /cvs/cairo/cairo-perl/Cairo.xs,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- Cairo.xs	21 Jan 2007 15:09:07 -0000	1.18
+++ Cairo.xs	17 Mar 2007 16:13:32 -0000	1.19
@@ -492,6 +492,12 @@
 
 #endif
 
+#if CAIRO_VERSION >= CAIRO_VERSION_ENCODE(1, 4, 0)
+
+cairo_scaled_font_t * cairo_get_scaled_font (cairo_t *cr);
+
+#endif
+
 void cairo_show_text (cairo_t * cr, const char * utf8);
 
 ##void cairo_show_glyphs (cairo_t * cr, cairo_glyph_t * glyphs, int num_glyphs);

Index: CairoSurface.xs
===================================================================
RCS file: /cvs/cairo/cairo-perl/CairoSurface.xs,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- CairoSurface.xs	23 Nov 2006 19:09:12 -0000	1.18
+++ CairoSurface.xs	17 Mar 2007 16:13:32 -0000	1.19
@@ -257,6 +257,8 @@
     }
 #endif
 
+void cairo_surface_finish (cairo_surface_t *surface);
+
 cairo_status_t cairo_surface_status (cairo_surface_t *surface);
 
 void cairo_surface_set_device_offset (cairo_surface_t *surface, double x_offset, double y_offset);

Index: ChangeLog
===================================================================
RCS file: /cvs/cairo/cairo-perl/ChangeLog,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -d -r1.53 -r1.54
--- ChangeLog	21 Jan 2007 15:12:44 -0000	1.53
+++ ChangeLog	17 Mar 2007 16:13:32 -0000	1.54
@@ -1,3 +1,20 @@
+2007-03-17	tsch
+
+	* Cairo.xs
+	* t/Cairo.t: Wrap cairo_get_scaled_font.
+
+	* CairoSurface.xs
+	* t/CairoSurface.t: Re-add the binding for cairo_surface_finish.
+	It was orignally removed because its effect can also be achieved
+	by destroying the surface or letting it go out of scope.  But
+	Oleksandr Alex Protasenko convinced me that it's still a good idea
+	to have it anyway, mainly for paginated surfaces like PDF and PS
+	which defer rendering as long as they can.  With $surf->finish you
+	can more clearly express what you're intending to do than with
+	$surf = undef.
+
+	* examples/png-streams.pl: Fix indention.
+
 2007-01-21	tsch
 
 	* Cairo.pm, NEWS, README: Unstable release 1.031.



More information about the cairo-commit mailing list