diff options
| author | 2024-08-27 16:11:50 +0000 | |
|---|---|---|
| committer | 2024-08-27 16:11:50 +0000 | |
| commit | 1f1e8d78364558121de396c25f6c5c68589ca191 (patch) | |
| tree | 4870f1fe3c0a79de08eeb039be35552a040b5a02 | |
| parent | 54526e9b29556ede6c22a07fad83cc6cc8163915 (diff) | |
Revert "Apply pending transactions always"
This reverts commit 54526e9b29556ede6c22a07fad83cc6cc8163915.
Reason for revert: SystemUI Jank Regression b/354559438
Change-Id: I0304f7c23aa5a94b359449d1e01a1c1de4448373
| -rw-r--r-- | core/java/android/view/ViewRootImpl.java | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/core/java/android/view/ViewRootImpl.java b/core/java/android/view/ViewRootImpl.java index 8f5c85f03ba0..2cb862cce4ac 100644 --- a/core/java/android/view/ViewRootImpl.java +++ b/core/java/android/view/ViewRootImpl.java @@ -4229,14 +4229,7 @@ public final class ViewRootImpl implements ViewParent, mReportNextDraw = false; mLastReportNextDrawReason = null; mActiveSurfaceSyncGroup = null; - if (mHasPendingTransactions) { - // TODO: We shouldn't ever actually hit this, it means mPendingTransaction wasn't - // merged with a sync group or BLASTBufferQueue before making it to this point - // But better a one or two frame flicker than steady-state broken from dropping - // whatever is in this transaction - mPendingTransaction.apply(); - mHasPendingTransactions = false; - } + mHasPendingTransactions = false; mSyncBuffer = false; if (isInWMSRequestedSync()) { mWmsRequestSyncGroup.markSyncReady(); |