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

Commit 970b4957 authored by Chavi Weingarten's avatar Chavi Weingarten Committed by Automerger Merge Worker
Browse files

Merge "Remove check for new requested sync before flushing shadow queue" into...

Merge "Remove check for new requested sync before flushing shadow queue" into udc-qpr-dev am: 9653f016 am: 2a4cec49

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/24323554



Change-Id: I06111ddef2ff01f171ad2a7282c64deb26da14ce
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 9ebd5e05 2a4cec49
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -303,13 +303,8 @@ void BLASTBufferQueue::transactionCommittedCallback(nsecs_t /*latchTime*/,
                // frame numbers that were in a sync. We remove the frame from mSyncedFrameNumbers
                // set and then check if it's empty. If there are no more pending syncs, we can
                // proceed with flushing the shadow queue.
                // We also want to check if mSyncTransaction is null because it's possible another
                // sync request came in while waiting, but it hasn't started processing yet. In that
                // case, we don't actually want to flush the frames in between since they will get
                // processed and merged with the sync transaction and released earlier than if they
                // were sent to SF
                mSyncedFrameNumbers.erase(currFrameNumber);
                if (mSyncedFrameNumbers.empty() && mSyncTransaction == nullptr) {
                if (mSyncedFrameNumbers.empty()) {
                    flushShadowQueue();
                }
            } else {