commit | a407ee86dcb452c3609898d6a95da755428456aa | [log] [tgz] |
---|---|---|
author | Tyler Freeman <fuego@google.com> | Wed Dec 13 10:16:09 2023 -0800 |
committer | Tyler Freeman <fuego@google.com> | Wed Dec 13 13:39:05 2023 -0800 |
tree | e282afc09d99a549ea7f6038d7d9eb626c8dc082 | |
parent | f23efb69cebaf3f51966fdfe7007d99dff2f0ab9 [diff] |
feat(non linear font scaling): optimization: cache any generated tables to reduce duplicate calculations Some clients (e.g. Compose) might call this every time they convert, in which case we need to ensure it is fast and avoids unnecessary allocations. Bug: b/239736383 Flag: android.content.res.font_scale_converter_public Test: atest FrameworksCoreTests:android.content.res.FontScaleConverterFactoryTest Change-Id: Ie73fa6d49e7605eea12a37930c82db7747dd8e2c