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

Commit 3d431c44 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Log fatal if we fail to apply a transaction in acquireNextBufferLocked" into main

parents b669cb16 d5186bbc
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -702,7 +702,10 @@ status_t BLASTBufferQueue::acquireNextBufferLocked(
    mergePendingTransactions(t, bufferItem.mFrameNumber);
    if (applyTransaction) {
        // All transactions on our apply token are one-way. See comment on mAppliedLastTransaction
        t->setApplyToken(mApplyToken).apply(false, true);
        status_t status = t->setApplyToken(mApplyToken).apply(false, true);
        LOG_ALWAYS_FATAL_IF(status != OK,
                            "[%s] acquireNextBufferLocked failed to apply transaction. status=%d",
                            mName.c_str(), status);
        mAppliedLastTransaction = true;
        mLastAppliedFrameNumber = bufferItem.mFrameNumber;
    } else {