[cairo] [Patch] Surface cache

Jorn Baayen jorn at openedhand.com
Thu Feb 8 03:49:28 PST 2007


On Thu, 2007-02-08 at 17:08 +0800, Jinghua Luo wrote:
> Jorn Baayen wrote:
> > On Wed, 2007-01-31 at 15:52 -0500, Behdad Esfahbod wrote:
> >   
> >> On Wed, 2007-01-31 at 18:58 +0200, Jorn Baayen wrote:
> >>     
> >>>> Thanks.  Looks really good.  "is_similar" is probably not the best
> >>>>         
> >>> name
> >>>       
> >>>> here, since it may return FALSE on a surface and another one created
> >>>> similar to it.  The similar surface may be a meta-surface (for SVG)
> >>>>         
> >>> or
> >>>       
> >>>> in image surface (under certain conditions for xlib).
> >>>>         
> >>> Yea. What alternative namings can you think of? 
> >>>       
> >> Not really.  is_compatible may be better.
> >>     
> >
> > Yeap seems better. Attached patch uses is_compatible, and implements it
> > for (hopefully) all other relevant backends.
> >
> > Thanks,
> >
> > Jorn
> >
> >   
> Looks good, but one comment, could you make the cache can be cleared via 
> cairo_debug_reset_static_data.

Something like this?


Thanks,

Jorn

-- 
OpenedHand Ltd.
http://o-hand.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cairo-surface-cache-4.patch
Type: text/x-patch
Size: 11972 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20070208/0fb772f4/cairo-surface-cache-4-0001.bin


More information about the cairo mailing list