[poppler] [PATCH] Improve linear gradients in cairo backend

Carlos Garcia Campos carlosgc at gnome.org
Sat Jul 25 03:31:49 PDT 2009


Hi all, 

when drawing gradients with cairo, we don't need to fill a path for
every region, we can just fill the bounding box with the gradient
pattern, but this only works when shading->getExtend0() ==
shading->getExtend1(), since we can use CAIRO_EXTEND_NONE when they are
FALSE and CAIRO_EXTEND_PAD when they are TRUE. When they are different,
we could just use the current approach, adding a path for every region.
This is exactly what the attached patch does.

-- 
Carlos Garcia Campos
PGP key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x523E6462
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Use-cairo_pattern_set_extend-for-linear-gradients.patch
Type: text/x-patch
Size: 3053 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/poppler/attachments/20090725/79297aac/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmada
 digitalmente
Url : http://lists.freedesktop.org/archives/poppler/attachments/20090725/79297aac/attachment.pgp 


More information about the poppler mailing list