Reduce invocation of surface placement of switching activities
This skips to perform surface placement immediately when starting
activity and reporting activity paused. Because the window of
next resuming activity should also do it by relayout.
These skip cases are relatively safe because before the transition
is ready, the visual appearance should keep the same even if without
running surface placement.
One of obvious benefit is to reduce lock contention from the systemui
when handling starting window (add window/relayout/finish drawn).
Bug: 188398125
Bug: 183665220
Bug: 187104264
Test: CtsWindowManagerDeviceTestCases
Change-Id: Ice5a47a64178cbd00ce27625a60eded2b699e9cf
7 files changed