[sugar] rendering test

Riccardo Lucchese riccardo.lucchese
Sun Sep 28 14:48:11 EDT 2008


On Sun, 2008-09-28 at 15:33 +0200, Benjamin Berg wrote:
> Hello,
> 
> On Sun, 2008-09-28 at 12:43 +0200, Riccardo Lucchese wrote:
> > Besides this, I think the icon caching mechanism should be reworked:
> > right now every icon has its own surfaces-cache and its svgloader. So
> > that, if I'm not wrong, two icons showing the same svg (with same size,
> > colors etc..) cache two distinct but identical surfaces in their
> > _iconbuffer and cache two times the raw svg file contents in their
> > svgloader.
> 
> The cached surface is shared between different icons (the icon buffer is
> not shared). _surface_cache is a class variable, so that only one LRU
> list for the surfaces is created.
mm yeah, sorry, totally misread the code :/

riccardo





More information about the Sugar-devel mailing list