commit | 80d73fa4eb0aabbaf843bb6496eeaef272fabfaf | [log] [tgz] |
---|---|---|
author | Seigo Nonaka <nona@google.com> | Thu Jun 10 00:24:38 2021 -0700 |
committer | Seigo Nonaka <nona@google.com> | Thu Jun 10 13:01:20 2021 -0700 |
tree | 6cd7e741cc04537bf18d8284b6c114238b733611 | |
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