summaryrefslogtreecommitdiffstats
path: root/libass/ass_render_api.c
diff options
context:
space:
mode:
authorGrigori Goronzy <greg@blackbox>2011-06-27 02:17:10 +0200
committerGrigori Goronzy <greg@blackbox>2011-06-27 02:17:10 +0200
commitd14f08365d9ecd16e8c762d852b6a22d7cc2307d (patch)
treef1957f459b64213d3dd380007b5b8864599db9d7 /libass/ass_render_api.c
parent308f4193c6b8d9f3ab8c70f7a9e083e7e2ad867d (diff)
downloadlibass-d14f08365d9ecd16e8c762d852b6a22d7cc2307d.tar.bz2
libass-d14f08365d9ecd16e8c762d852b6a22d7cc2307d.tar.xz
cache: unified outline cache for glyphs/drawings
Glyphs and drawings have wildly different hash keys. Subclass the hash keys of glyphs and drawings in a new, unified outline cache. This also fixes some issues with drawings in the glyph cache. Now, the textual description of the drawing is included in the key (the hash value isn't really good enough, especially not fnv32) and the baseline offset is saved as well.
Diffstat (limited to 'libass/ass_render_api.c')
-rw-r--r--libass/ass_render_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libass/ass_render_api.c b/libass/ass_render_api.c
index 5995d31f..5b02b46c 100644
--- a/libass/ass_render_api.c
+++ b/libass/ass_render_api.c
@@ -25,7 +25,7 @@ static void ass_reconfigure(ASS_Renderer *priv)
ASS_Settings *settings = &priv->settings;
priv->render_id++;
- ass_cache_empty(priv->cache.glyph_cache, 0);
+ ass_cache_empty(priv->cache.outline_cache, 0);
ass_cache_empty(priv->cache.bitmap_cache, 0);
ass_cache_empty(priv->cache.composite_cache, 0);
ass_free_images(priv->prev_images_root);