Finish sync for relayout a drawn window

An activity may change visibility in a short time as visible
-> invisible -> visible without reset drawn state. E.g. scene
transition convert to translucent. Then if its window relayout
to clear mRedrawForSyncReported, the window will stuck by
SYNC_STATE_WAITING_FOR_DRAW until it becomes invisible or timeout.

This also relates to non-sync blast so maybeSyncSeqId is -1 then
the window won't report drawn.

Bug: 260093427
Test: Enable shell transition.
      Launch Messages and click its search bar.
      There should be fade out/in animation for activity switch.
Change-Id: I49746b56e7dda76c530366663000b0d11ae779f3
1 file changed