summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorRiddle Hsu <riddlehsu@google.com>2021-02-05 23:42:26 +0800
committerRiddle Hsu <riddlehsu@google.com>2021-03-19 12:47:05 +0800
commit1a7dc4c24cab0e80ba302b2b8693b1ad16166b73 (patch)
tree42612c685e5710b41c078c7f0514ab279ad373de /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parentf1c8817e0fc8f377c405f5a86b68a6c7de97a5ac (diff)
Only wait for significant windows to unfreeze display
This may reduce frozen time by ~60% (~100ms on a mid-end device) when rotating device with a simple activity that can handle orientation change (no relaunch). The unfreezing procedure still waits for the windows of Activity, IME, wallpaper. Other windows such as navigation bar, status bar, toast, overlay, they are hidden when rotation animation is set for freezing screen. And if they are redrawn in new rotation or reach timeout, their windows will fade in. If the redraw time is quick enough, the visual appearance will be almost the same as waiting for all windows because the the duration of rotation animation make the fade-in animation unnoticeable. Bug: 178472794 Test: atest DisplayContentTests#testHybridRotationAnimation Test: Rotate device and check log "Screen frozen for". Change-Id: I57cce881a2d685a2f1130d7e9a335fd9d86ba360
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions