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

Commit ac1706e1 authored by Vishnu Nair's avatar Vishnu Nair
Browse files

Apply dangling pending transactions using the BBQ apply token

Prevent out of order transactions when applying the dangling transactions.

Flag: EXEMPT bug fix
Bug: 362400679
Test: presubmit
Change-Id: I416f9c0b6f061a8ee23610611e74aefb475d3b38
parent a8214163
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -4400,7 +4400,8 @@ public final class ViewRootImpl implements ViewParent,
                // 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();
                // apply immediately with bbq apply token
                mergeWithNextTransaction(mPendingTransaction, 0);
                mHasPendingTransactions = false;
            }
            mSyncBuffer = false;
@@ -5466,7 +5467,8 @@ public final class ViewRootImpl implements ViewParent,
                Log.d(mTag, "Pending transaction will not be applied in sync with a draw due to "
                        + logReason);
            }
            pendingTransaction.apply();
            // apply immediately with bbq apply token
            mergeWithNextTransaction(pendingTransaction, 0);
        }
    }
    /**