summaryrefslogtreecommitdiff
path: root/libs/androidfw/ConfigDescription.cpp
diff options
context:
space:
mode:
author Riddle Hsu <riddlehsu@google.com> 2022-12-01 16:56:02 +0800
committer Riddle Hsu <riddlehsu@google.com> 2022-12-20 14:46:57 +0800
commit03de64bece0fe350f249b691682ffc44cf9fff73 (patch)
treef80a1a492b65410b3bd42cd75fe51481d428c2b6 /libs/androidfw/ConfigDescription.cpp
parent2fafc8df6592315448ef0c35d0fff7d177f70ef1 (diff)
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
Diffstat (limited to 'libs/androidfw/ConfigDescription.cpp')
0 files changed, 0 insertions, 0 deletions