Skip to content

Commit 367d774

Browse files
Treehugger Robotandroid-build-merge-worker-robot
authored andcommitted
Merge "Unify the types of two NumFrame variables and Code Optimization" into main am: 003da7d am: 89a466b
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>
2 parents 0f35c2f + 89a466b commit 367d774

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

libs/gui/BLASTBufferQueue.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,6 @@ BLASTBufferQueue::BLASTBufferQueue(const std::string& name, bool updateDestinati
222222
ComposerServiceAIDL::getComposerService()->getMaxAcquiredBufferCount(&mMaxAcquiredBuffers);
223223
mBufferItemConsumer->setMaxAcquiredBufferCount(mMaxAcquiredBuffers);
224224
mCurrentMaxAcquiredBufferCount = mMaxAcquiredBuffers;
225-
mNumAcquired = 0;
226-
mNumFrameAvailable = 0;
227225

228226
TransactionCompletedListener::getInstance()->addQueueStallListener(
229227
[&](const std::string& reason) {
@@ -439,7 +437,7 @@ void BLASTBufferQueue::transactionCallback(nsecs_t /*latchTime*/, const sp<Fence
439437

440438
void BLASTBufferQueue::flushShadowQueue() {
441439
BQA_LOGV("flushShadowQueue");
442-
int numFramesToFlush = mNumFrameAvailable;
440+
int32_t numFramesToFlush = mNumFrameAvailable;
443441
while (numFramesToFlush > 0) {
444442
acquireNextBufferLocked(std::nullopt);
445443
numFramesToFlush--;

0 commit comments

Comments
 (0)