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

Commit 54526e9b authored by John Reck's avatar John Reck
Browse files

Apply pending transactions always

Test: repro in bug
Bug: 334901521

Change-Id: I8f856e7be5917a1d01f0ee2bdbe613bf37045646
parent 73a196df
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -4229,7 +4229,14 @@ 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;
            }
            mSyncBuffer = false;
            if (isInWMSRequestedSync()) {
                mWmsRequestSyncGroup.markSyncReady();