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

Commit b71e9514 authored by Riddle Hsu's avatar Riddle Hsu Committed by Nicolò Mazzucato
Browse files

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 5dfc7882)
parent 1e2468f4
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;