| commit | eda7fabeaeae5fa050b3c45391ca40eff4fa31bd | [log] [tgz] |
|---|---|---|
| author | Seigo Nonaka <nona@google.com> | Fri Jul 26 16:40:41 2024 +0900 |
| committer | Seigo Nonaka <nona@google.com> | Wed Aug 14 23:25:20 2024 +0900 |
| tree | b2c5180f36ede5320303a21affda9f10303c7465 | |
| parent | fda1f4323268706a0d9e11fc96ca237f0bce84c7 [diff] |
[Reland] Cache the variation instance of Typeface
This is a reland of the 4cefdc6df295534f7f94b26371dbacdba75db32f
The previous attempt breaks robolectric tests of settings but it
needs to be fix-forward. Context: b/358347869
Performance numbers on Pixel 8 Pro.
Non-Cached: 366,835 ns
Cached: 2,427 ns
Bug: 355462362
Test: PaintTest
Flag: com.android.text.flags.typeface_cache_for_var_settings
Change-Id: I0f1e253eae5e2774ef4f10dcf5d0c8e8fbe6e367