Enable insets cache for display switch

To reduce latency of physical display switch.

Bug: 266197298
Test: Check latency of fold/unfold.
Change-Id: Id2e796edee45dae281f867c2b1549a80984c8a8e
This commit is contained in:
Riddle Hsu
2023-05-12 08:20:00 +00:00
parent 2207ae2f66
commit 5dfc7882df

View File

@@ -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;