[cairo] Solid pattern caching revisited

Behdad Esfahbod behdad at behdad.org
Wed Apr 25 22:12:03 PDT 2007


On Thu, 2007-04-19 at 14:26 +0100, Chris Wilson wrote:
> The issue that I've just been bitten by is that attributes are
> stored directly on the surface or implicitly in the graphics state. The
> notable one, as it is the first failure in cairo-test, is the clip mask,
> but all of cairo_surface_attributes_t are at issue, as well as any
> backend specific properties.
> 
> It seems that the best approach would be to use a COW surface.
> Implementing such a beast would be quite invasive, so I'm open to
> alternatives or further use cases that would benefit from COW surfaces.

What if we remove the surface from the cache when in use, and reset its
attributes when putting it back?

> --
> Chris Wilson
-- 
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