diff options
author | Seigo Nonaka <nona@google.com> | 2019-04-23 13:21:27 -0700 |
---|---|---|
committer | Seigo Nonaka <nona@google.com> | 2019-04-23 13:21:27 -0700 |
commit | 37d181673bfa92b9f26fdcc96c4d68b7b164c14e (patch) | |
tree | be0bce8ebaaf2555e2bbf1099240b80b2ac0726c /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | ac8913be194a2a513218107dfe0da78de17a834e (diff) |
Fix performance regression by fixing keys used in Typeface.Builder
The key used in Typeface.Builder is different from the key used in
findFromCache method. The problem is key generation in Typeface.Builder
since the key should be created from requested parameters not the actual
font styles.
Here is the raw performance differences on walleye-userdebug
android.graphics.perftests.TypefaceCreatePerfTest(us):
createFromResources: 248 -> 23: (-225, -90.7%)
Bug: 131167183
Test: manually collected perf test result.
Change-Id: Idea25095979707ac84b7f4bc1ede0c2daefd6127
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions