Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5dfc7882 authored by Riddle Hsu's avatar Riddle Hsu
Browse files

Enable insets cache for display switch

To reduce latency of physical display switch.

Bug: 266197298
Test: Check latency of fold/unfold.
Change-Id: Id2e796edee45dae281f867c2b1549a80984c8a8e
parent 2207ae2f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;