summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorSeigo Nonaka <nona@google.com>2021-06-10 00:24:38 -0700
committerSeigo Nonaka <nona@google.com>2021-06-10 13:01:20 -0700
commit80d73fa4eb0aabbaf843bb6496eeaef272fabfaf (patch)
tree6cd7e741cc04537bf18d8284b6c114238b733611 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent33f8e11606708a9724d5daaa486a0a5976e19482 (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 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions