[cairo] xtrace, part the second

Behdad Esfahbod behdad at behdad.org
Wed Dec 13 14:51:25 PST 2006


On Wed, 2006-12-13 at 14:48 -0800, MenTaLguY wrote:
> On Wed, 13 Dec 2006 15:23:15 -0500, Behdad Esfahbod <behdad at behdad.org> wrote:
> > However, to do this correctly, we need to introduce a new object for a
> > display.  Moreover, we need to do locking around it (right?).  So, maybe
> > using a pattern-private member is easier.  You just don't get to reuse
> > them between patterns.
> 
> 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?

Yeah that's what I meant by "You just don't get to reuse them between
patterns."

> -mental
> 
-- 
behdad
http://behdad.org/

"Those who would give up Essential Liberty to purchase a little
 Temporary Safety, deserve neither Liberty nor Safety."
        -- Benjamin Franklin, 1759





More information about the cairo mailing list