[cairo] xtrace, part the second

Carl Worth cworth at cworth.org
Wed Dec 13 15:12:56 PST 2006

On Wed, 13 Dec 2006 14:48:14 -0800, MenTaLguY wrote:
> cairo_set_source_rgb{,a} seems to be the most common way to switch
> amongst solid colors -- doesn't it just create a new pattern each
> time, making a per-pattern cache relatively useless for solid
> colors?

What I would suggest is a tiny little cache of patterns for use by
cairo_set_source_rgb{,a} and then the per-pattern stashing of an
acquired surface.

That seems like the easiest way to cover the most common cases.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20061213/62e88092/attachment.pgp

More information about the cairo mailing list