Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit a7d9247f authored by Riddle Hsu's avatar Riddle Hsu
Browse files

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
parent 44fdc24a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment