[cairo] [Patch] Surface cache
Jinghua Luo
sunmoon1997 at gmail.com
Thu Feb 8 01:08:00 PST 2007
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.
More information about the cairo
mailing list