]> granicus.if.org Git - libass/commit
Limit (bitmap) glyph cache size
authorGrigori Goronzy <greg@blackbox>
Sun, 1 Aug 2010 01:30:59 +0000 (03:30 +0200)
committerGrigori Goronzy <greg@blackbox>
Sun, 1 Aug 2010 01:35:19 +0000 (03:35 +0200)
commitec0d975158e5f3b1c6a60c44fb10171f1b3c1b32
tree88bbd0ee922abcd25bab3bca4ead1aa6dbdb1596
parent7bdeea8453b2643b1925223acab41f5c7b56b6e2
Limit (bitmap) glyph cache size

Now that bitmap glyphs (for vector clip masks) are stored in the glyph
cache, make sure it cannot grow indefinitely easily. Similar to the
bitmap cache, track approximate size of the cached elements and reset
if the cache exceeds a certain limit.
Also, reduce default bitmap cache size to 30 MB as we have essentially
two bitmap caches now. That's still plenty in all use cases where
caching matters.
libass/ass_cache.c
libass/ass_render.c