From 5dfc7882dfa7431f8d3df257fe59ebfaa15705e2 Mon Sep 17 00:00:00 2001 From: Riddle Hsu Date: Fri, 12 May 2023 08:20:00 +0000 Subject: [PATCH] Enable insets cache for display switch To reduce latency of physical display switch. Bug: 266197298 Test: Check latency of fold/unfold. Change-Id: Id2e796edee45dae281f867c2b1549a80984c8a8e --- services/core/java/com/android/server/wm/DisplayPolicy.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/core/java/com/android/server/wm/DisplayPolicy.java b/services/core/java/com/android/server/wm/DisplayPolicy.java index 77e70a25d497f..d0ca8e3ed3e7e 100644 --- a/services/core/java/com/android/server/wm/DisplayPolicy.java +++ b/services/core/java/com/android/server/wm/DisplayPolicy.java @@ -176,7 +176,7 @@ public class DisplayPolicy { // TODO(b/266197298): Remove this by a more general protocol from the insets providers. private static final boolean USE_CACHED_INSETS_FOR_DISPLAY_SWITCH = - SystemProperties.getBoolean("persist.wm.debug.cached_insets_switch", false); + SystemProperties.getBoolean("persist.wm.debug.cached_insets_switch", true); private final WindowManagerService mService; private final Context mContext;