diff options
| author | 2025-02-12 15:46:05 -0800 | |
|---|---|---|
| committer | 2025-02-12 15:46:05 -0800 | |
| commit | 367d77477fd5de3aadd601a615905782ba0dd342 (patch) | |
| tree | 7ef007db3723ec28cf009bca0d13562646050218 /libs/gui/BLASTBufferQueue.cpp | |
| parent | 0f35c2fa214081a8cbc5f00e21cffc4bd58fadda (diff) | |
| parent | 89a466be41704af978efb0daa109bee62dd1ca86 (diff) | |
Merge "Unify the types of two NumFrame variables and Code Optimization" into main am: 003da7db89 am: 89a466be41
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/3491440
Change-Id: Ia11f8c1d9a55a45b1ca27547fb255decaee3d9c6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Diffstat (limited to 'libs/gui/BLASTBufferQueue.cpp')
| -rw-r--r-- | libs/gui/BLASTBufferQueue.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libs/gui/BLASTBufferQueue.cpp b/libs/gui/BLASTBufferQueue.cpp index c770db9cf3..310f781876 100644 --- a/libs/gui/BLASTBufferQueue.cpp +++ b/libs/gui/BLASTBufferQueue.cpp @@ -222,8 +222,6 @@ BLASTBufferQueue::BLASTBufferQueue(const std::string& name, bool updateDestinati ComposerServiceAIDL::getComposerService()->getMaxAcquiredBufferCount(&mMaxAcquiredBuffers); mBufferItemConsumer->setMaxAcquiredBufferCount(mMaxAcquiredBuffers); mCurrentMaxAcquiredBufferCount = mMaxAcquiredBuffers; - mNumAcquired = 0; - mNumFrameAvailable = 0; TransactionCompletedListener::getInstance()->addQueueStallListener( [&](const std::string& reason) { @@ -439,7 +437,7 @@ void BLASTBufferQueue::transactionCallback(nsecs_t /*latchTime*/, const sp<Fence void BLASTBufferQueue::flushShadowQueue() { BQA_LOGV("flushShadowQueue"); - int numFramesToFlush = mNumFrameAvailable; + int32_t numFramesToFlush = mNumFrameAvailable; while (numFramesToFlush > 0) { acquireNextBufferLocked(std::nullopt); numFramesToFlush--; |