diff options
author | Seigo Nonaka <nona@google.com> | 2021-06-10 00:24:38 -0700 |
---|---|---|
committer | Seigo Nonaka <nona@google.com> | 2021-06-10 13:01:20 -0700 |
commit | 80d73fa4eb0aabbaf843bb6496eeaef272fabfaf (patch) | |
tree | 6cd7e741cc04537bf18d8284b6c114238b733611 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 33f8e11606708a9724d5daaa486a0a5976e19482 (diff) |
Cache Typeface for later animation
The Paint#setFontvariationSettings always creates new Typeface instance
from scratch. To avoid unnecessary Typeface creation for the same weight
variant, cache the Typeface and use it later same animation.
Bug: 189867246
Test: atest TextAnimatorTest TextInterpolatorTest
Change-Id: I67ca72f2c54ca9caf4bcf562557ac4f24b44f01e
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions