summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorSeigo Nonaka <nona@google.com>2015-12-02 10:53:18 +0900
committerSeigo Nonaka <nona@google.com>2015-12-07 16:50:20 -0800
commitcfc607cf57d453f977c9c4bf09b41ac481c4bbec (patch)
tree8c77b689bdeef7721a7248955c306dfe1907c90e /tools/aapt2/java/JavaClassGenerator_test.cpp
parent39a275b3980b5ea75e060da540229b95a47333f7 (diff)
Introduce cache mechanism for LocaleList.
Setting the LocaleList to the native Paint object is not a lightweight operation since it needs to propagate a string object to the native code which then needs to parse it for making minikin language list. To avoid performance regressions, cache the minikin language ID in android.graphics.Paint and send the LocaleList with cached ID instead of a string the next time native code is called. BUG: 25122318 Change-Id: Ib5ce8bcff8a1c0a2b1a1c3d1868ea8be5a0e642f
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions