diff options
author | wilsonshih <wilsonshih@google.com> | 2021-03-25 16:27:22 +0800 |
---|---|---|
committer | wilsonshih <wilsonshih@google.com> | 2021-04-16 11:04:38 +0800 |
commit | 6298f2c0461cee74cc01b85d406ea5a9a7374257 (patch) | |
tree | 561a7aa17e9cbaebd0da496654a7064e56d3a9c6 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | fca79abeea9d8103cb23c16d78c7ccb3f46fb1be (diff) |
Starting window performance tuning for binder block.
- Pass TaskSnapshot to Shell directly.
- Parallel process: create a splash screen worker thread to create the
splash screen view and pre-draw the icon drawable, and use splash
screen thread to do stuff about window's lifecycle like add/remove
window. We don't use shell main thread here so the starting window
won't blocking any task execute on main thread.
- Trigger addStartingWindow directly when startActivity, also
removeStartingWindow directly without post the animation thread.
- Do not defer addStartingWindow for prepare surface, on the contrast
it should be execute before prepare surface.
- Remove ActivityRecordTests#testAddRemoveRace, it wasn't been test as
expected because in original logic the add and remove starting window
are post to animation thread, so the test was actually testing on
handler#postAtFrontOfQueue and handler#removeCallbacks.
For now it will only cause OutOfMemoryError.
Bug: 183665220
Bug: 182836977
Test: atest StartingSurfaceDrawerTests SplashscreenTests
Change-Id: Ie9a529c7d81f07f923394eb69944518f3e9010ce
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions