summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author wilsonshih <wilsonshih@google.com> 2020-05-29 15:49:05 +0800
committer Wei Sheng Shih <wilsonshih@google.com> 2020-06-04 09:15:50 +0000
commit42e9e4890b2aec055ba40f8c80bb2810a40f2b15 (patch)
treeb2b3eb9a1ce00d483b08095beb00009bbc21ac80
parent38e3d616bc62fe5e0627f5b3878c824c4c174a16 (diff)
Take new screen shot before kill previous one.
This issue happened while continues start rotation animation twice. For the second time startFreezingDisplay, if previous ScreenRotationAnimation object is animating, in original flow we would kill previous animation object which would remove the surfaces with a transaction, then take a new screen shot and apply those new surfaces with another transaction. Because the second screen shot is taken after previous animation's surfaces just been removed, so it may not fluent with original frame. To make the animation smooth, take the screen shot before kill previous screen rotation animation. Bug: 148192402 Test: Change display or font size in Settings quickly and monitoring no flicker occurred. Change-Id: Ie351a68e8b813e888756f9578da3a00c5c1c017f
-rw-r--r--services/core/java/com/android/server/wm/WindowManagerService.java5
1 files changed, 0 insertions, 5 deletions
diff --git a/services/core/java/com/android/server/wm/WindowManagerService.java b/services/core/java/com/android/server/wm/WindowManagerService.java
index 8934e8f5c2e0..b1857f1094ce 100644
--- a/services/core/java/com/android/server/wm/WindowManagerService.java
+++ b/services/core/java/com/android/server/wm/WindowManagerService.java
@@ -5616,11 +5616,6 @@ public class WindowManagerService extends IWindowManager.Stub
mLatencyTracker.onActionStart(ACTION_ROTATE_SCREEN);
mExitAnimId = exitAnim;
mEnterAnimId = enterAnim;
- ScreenRotationAnimation screenRotationAnimation =
- displayContent.getRotationAnimation();
- if (screenRotationAnimation != null) {
- screenRotationAnimation.kill();
- }
displayContent.updateDisplayInfo();
final int originalRotation = overrideOriginalRotation != ROTATION_UNDEFINED