From 4e3be548615f8ce8a45f0e887f19eb39ba21f8a4 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 12 Apr 2007 21:34:49 -0400 Subject: [PATCH] [cairo-pattern] Add a TODO item to code --- src/cairo-pattern.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/cairo-pattern.c b/src/cairo-pattern.c index ec8f0d05b..e92d87dc8 100644 --- a/src/cairo-pattern.c +++ b/src/cairo-pattern.c @@ -1381,6 +1381,13 @@ _cairo_pattern_acquire_surface_for_surface (cairo_surface_pattern_t *pattern, 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;