diff options
author | Dr.Smile <vabnick@gmail.com> | 2019-05-19 20:24:29 +0300 |
---|---|---|
committer | Dr.Smile <vabnick@gmail.com> | 2019-05-19 20:24:29 +0300 |
commit | e072b72b1a12837b6894d052a08ed3aed57f2f16 (patch) | |
tree | 492ddc7dbf70b70f298bcb3298b53ebad03841b6 /.travis.yml | |
parent | 5d03af99c6d8f43be973cb6dacb5d6dd0ada33b1 (diff) | |
download | libass-e072b72b1a12837b6894d052a08ed3aed57f2f16.tar.bz2 libass-e072b72b1a12837b6894d052a08ed3aed57f2f16.tar.xz |
cache: construct cache values only from corresponding keys
This commit forces construction of cache values using only data
available in its companion keys. That ensures logical correctness:
keys are guaranteed to have all the necessary data, and prevents
accidental collisions.
Most fixes of cache logic correspond to minor problem
when rendering is done with double parameter but cache key stores
its approximate fixed-point representation. The only serious problem
is missing scale of clip drawing. Also this commit removes unused
scale parameters from glyph metrics cache key.
Due to missing scale clip shapes that differed only in scale
treated by cache system as identical. That can lead to incorrect reuse
of cached bitmap of different scale instead of correct one.
The only hack left is in glyph metrics cache with its
unicode >= VERTICAL_LOWER_BOUND check.
Diffstat (limited to '.travis.yml')
0 files changed, 0 insertions, 0 deletions