summaryrefslogtreecommitdiff
path: root/libs/androidfw/ConfigDescription.cpp
diff options
context:
space:
mode:
author Riddle Hsu <riddlehsu@google.com> 2022-12-20 23:41:56 +0800
committer Riddle Hsu <riddlehsu@google.com> 2022-12-22 01:58:19 +0000
commita7d9247f1b616d724cd93e168bd6723dbefc138b (patch)
tree4845f0652f03e708d75f4d6c496b61bf72502152 /libs/androidfw/ConfigDescription.cpp
parent44fdc24abba2e1e4b30a63c7999cec89c7520788 (diff)
Reduce unnecessary redraw for non blast sync
For example, when resuming an existing activity from background: 1. The snapshot starting window is added to the next top activity. 2. The previous activity is paused and then the next top activity is collected, so the starting window is SYNC_STATE_WAITING_FOR_DRAW. Then shouldSendRedrawForSync() returns true so request redraw. 3. Starting window reports finish draw from 1. 4. Additional finish draw from 2. By making mRedrawForSyncReported default true, unless requestRedrawForSync is called explicitly, the window won't be requested to redraw just because of its sync state. Bug: 260059642 Test: Enable shell transition. adb shell wm logging enable-text WM_DEBUG_RESIZE Hot launch app from launcher. Log should not show "Resizing window" for SnapshotStartingWindow Change-Id: Icbc9c7ec024595395b78136007895608ba52acb0
Diffstat (limited to 'libs/androidfw/ConfigDescription.cpp')
0 files changed, 0 insertions, 0 deletions