From 7f0df44ee2c221c48bc137f161cac8a9db8e79a3 Mon Sep 17 00:00:00 2001 From: Vishnu Nair Date: Wed, 17 Jun 2020 15:41:44 -0700 Subject: [PATCH] Launcher: Replace eEarlyWakeup flags with explicit eEarlyWakeup start and end flags eEarlyWakeup flag is used as a hint to SurfaceFlinger to adjust its offsets so it can wakeup earlier and have sufficient time to compose more complex scenes. This flag has been replaced with explicit start and stop flags which ensure the SurfaceFlinger offsets remain consistent during animation. WM will now set the flags so this change removes use of the deprecated flag. Bug: 158127834 Test: go/wm-smoke Test: systrace to verify new tracepoint and offset behavior Change-Id: I680d680525482ed61ae38289076bb4213aeb1722 --- .../com/android/quickstep/util/SurfaceTransactionApplier.java | 2 -- .../src/com/android/quickstep/util/TransformParams.java | 1 - 2 files changed, 3 deletions(-) diff --git a/quickstep/recents_ui_overrides/src/com/android/quickstep/util/SurfaceTransactionApplier.java b/quickstep/recents_ui_overrides/src/com/android/quickstep/util/SurfaceTransactionApplier.java index 0a3e3ecf11..0436a1c53a 100644 --- a/quickstep/recents_ui_overrides/src/com/android/quickstep/util/SurfaceTransactionApplier.java +++ b/quickstep/recents_ui_overrides/src/com/android/quickstep/util/SurfaceTransactionApplier.java @@ -16,7 +16,6 @@ package com.android.quickstep.util; import static com.android.systemui.shared.system.TransactionCompat.deferTransactionUntil; -import static com.android.systemui.shared.system.TransactionCompat.setEarlyWakeup; import android.annotation.TargetApi; import android.os.Build; @@ -95,7 +94,6 @@ public class SurfaceTransactionApplier extends ReleaseCheck { surfaceParams.applyTo(t); } } - setEarlyWakeup(t); t.apply(); Message.obtain(mApplyHandler, MSG_UPDATE_SEQUENCE_NUMBER, toApplySeqNo, 0) .sendToTarget(); diff --git a/quickstep/recents_ui_overrides/src/com/android/quickstep/util/TransformParams.java b/quickstep/recents_ui_overrides/src/com/android/quickstep/util/TransformParams.java index 7a62e83c39..0135f7472c 100644 --- a/quickstep/recents_ui_overrides/src/com/android/quickstep/util/TransformParams.java +++ b/quickstep/recents_ui_overrides/src/com/android/quickstep/util/TransformParams.java @@ -191,7 +191,6 @@ public class TransformParams { for (SurfaceParams param : params) { SyncRtSurfaceTransactionApplierCompat.applyParams(t, param); } - t.setEarlyWakeup(); t.apply(); } }