summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorRiddle Hsu <riddlehsu@google.com>2021-05-06 15:56:24 +0800
committerRiddle Hsu <riddlehsu@google.com>2021-05-06 16:15:29 +0800
commit0c54f2192f8f75745ecccd649e343a3c061c3d86 (patch)
tree1221dee671bcb804777766541035c9f0e0ff42a7 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent690dd68dcc31dc7af2cd31475a64d68f29b931e2 (diff)
Skip creating config context if it is the same as current
If the launching app is fullscreen on default display, the task config should be the same as current global config. Then it is unnecessary to create a context again. Use diffPublicOnly because task config may have specified windowing mode, which won't affect resources resolving. It saves up to 4ms when adding splash screen starting window. Also simply the initialization a bit. Bug: 187104264 Test: OpenAppMicrobenchmark Change-Id: I2bc7e8dfba3b1d8ad501f6935080a86f2c45f032
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions