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

Behdad Esfahbod behdad at kemper.freedesktop.org
Thu Apr 12 18:38:10 PDT 2007


 src/cairo-pattern.c |    7 +++++++
 1 files changed, 7 insertions(+)

New commits:
diff-tree 4e3be548615f8ce8a45f0e887f19eb39ba21f8a4 (from ec639449de9b630cdb4e7bca4ba8487b3a263184)
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Thu Apr 12 21:34:49 2007 -0400

    [cairo-pattern] Add a TODO item to code

diff --git a/src/cairo-pattern.c b/src/cairo-pattern.c
index ec8f0d0..e92d87d 100644
--- a/src/cairo-pattern.c
+++ b/src/cairo-pattern.c
@@ -1381,6 +1381,13 @@ _cairo_pattern_acquire_surface_for_surfa
 
 	attr->extend = CAIRO_EXTEND_REPEAT;
 
+	/* TODO: Instead of rendering pattern->surface four times to
+	 * out, we should first copy pattern->surface to surface similar
+	 * to dst and then copy that four times to out.  This may cause
+	 * an extra copy in the case of image destination, but for X servers,
+	 * this will send pattern->surface just once over the wire instead
+	 * of current four.
+	 */
 	x = extents.x;
 	y = extents.y;
 	w = 2 * extents.width;


More information about the cairo-commit mailing list