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

Reduce unnecessary redraw when unlocking

The visible windows may be drawn earlier then the
timing to start requesting draw. And the starting
window should be used to cover the drawing time of
main window.

This may reduce hundreds of milliseconds of unlock
latency on slower devices.

Bug: 139522754
Bug: 140811348
Test: atest ActivityVisibilityTests
            WindowStateTests#testRequestDrawIfNeeded
Test: Use biometrics to unlock device with log
      WM_DEBUG_SCREEN_ON and WM_DEBUG_DRAW enabled.
      There shouldn't have multiple finishDrawingWindow
      from the same window.
Change-Id: I258fad2ef69b7d912ce6f799eb1f3adf29e38aec
parent 83a8a3bc
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