diff options
author | 2025-02-12 15:21:49 -0800 | |
---|---|---|
committer | 2025-02-12 15:21:49 -0800 | |
commit | 89a466be41704af978efb0daa109bee62dd1ca86 (patch) | |
tree | a6a645631451d906480b914532e06169a79bb12f /libs/gui/BLASTBufferQueue.cpp | |
parent | 66e80a3a2469b9b14335ed9034bdb958d222c8af (diff) | |
parent | 003da7db89302dc5ae314fdbbd81a636d2e7e85e (diff) |
Merge "Unify the types of two NumFrame variables and Code Optimization" into main am: 003da7db89
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/3491440
Change-Id: I741c16539ae263a25a9a286ac96ada374dae30b6
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 25e6a52ed1..ba82046388 100644 --- a/libs/gui/BLASTBufferQueue.cpp +++ b/libs/gui/BLASTBufferQueue.cpp @@ -210,8 +210,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) { @@ -436,7 +434,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--; |