From b71e95146f2c2241ab48c4602e4cbcec87d246da Mon Sep 17 00:00:00 2001 From: Riddle Hsu Date: Fri, 12 May 2023 08:20:00 +0000 Subject: Enable insets cache for display switch To reduce latency of physical display switch. Bug: 266197298 Bug: 293131586 Bug: 292472402 Test: Check latency of fold/unfold. Change-Id: Id2e796edee45dae281f867c2b1549a80984c8a8e (cherry picked from commit 5dfc7882dfa7431f8d3df257fe59ebfaa15705e2) --- 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 95c953a5cf2d..a1a9a0877710 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; -- cgit v1.2.3-59-g8ed1b