Synchronize rotating non-app windows with fade animation

By capturing the sync draw transaction, the window can keep the
appearance in old rotating when running fade out animation. That
avoids flickering if the window is drawn earlier with new rotation.

Also centralize notifyStartingWindowDrawn to reduce duplicated code
and increase consistency of measurement.

Bug: 212570760
Test: atest TransitionTests#testAppTransitionWithRotationChange

Change-Id: I521b9c4278dd57bb6f277c13e6e7189a0c030e79
5 files changed