Finish sync for unchanged drawn window
A window may be collected while it is drawn without state changes.
So after surface placement, if the window is not added to be resizing
(updateResizingWindowIfNeeded is not called), the window can be
considered as ready to reduce the time of waiting next redraw or even
transition timeout.
For example (shell transition): Activity X starts Y in the same task
and X finishes when the previous transition animation is running.
X's draw state (drawn) and visibility (visible) are not changed. Then
the closing transition may be timeout.
Though the timeout can also be fixed by calling DC#setLayoutNeeded
(to trigger updateResizingWindowIfNeeded) in SyncGroup#setReady, it
means that the transition needs to wait for the unnecessary redraw.
This can also handle the case of
I49746b56e7dda76c530366663000b0d11ae779f3
Bug: 260059642
Test: atest SyncEngineTests WindowOrganizerTests
Change-Id: I4615eb17553ffb6635a0c39c849b44c80d03f41e
5 files changed