diff options
| author | 2023-10-19 17:59:10 +0000 | |
|---|---|---|
| committer | 2023-10-19 17:59:10 +0000 | |
| commit | 33be5720ee21ff68dbc22bca8842e33c02f60cd0 (patch) | |
| tree | 2ad91ea5451e5858739cc94ab95bbbc1ca9168b9 /libs/gui/BLASTBufferQueue.cpp | |
| parent | e96bb74514b703041fc336e03b0c9e84439249c3 (diff) | |
| parent | 5d53fcb96b3e837d91282d31b0819aa6412a8c9f (diff) | |
Merge "Merge 10952656" into aosp-main-future
Diffstat (limited to 'libs/gui/BLASTBufferQueue.cpp')
| -rw-r--r-- | libs/gui/BLASTBufferQueue.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/libs/gui/BLASTBufferQueue.cpp b/libs/gui/BLASTBufferQueue.cpp index 5c324b29cd..207fa4fd31 100644 --- a/libs/gui/BLASTBufferQueue.cpp +++ b/libs/gui/BLASTBufferQueue.cpp @@ -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 { |