Skip to content

Commit 003da7d

Browse files
Treehugger RobotGerrit Code Review
authored andcommitted
Merge "Unify the types of two NumFrame variables and Code Optimization" into main
2 parents e59b42f + a576ccd commit 003da7d

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
@@ -210,8 +210,6 @@ BLASTBufferQueue::BLASTBufferQueue(const std::string& name, bool updateDestinati
210210
ComposerServiceAIDL::getComposerService()->getMaxAcquiredBufferCount(&mMaxAcquiredBuffers);
211211
mBufferItemConsumer->setMaxAcquiredBufferCount(mMaxAcquiredBuffers);
212212
mCurrentMaxAcquiredBufferCount = mMaxAcquiredBuffers;
213-
mNumAcquired = 0;
214-
mNumFrameAvailable = 0;
215213

216214
TransactionCompletedListener::getInstance()->addQueueStallListener(
217215
[&](const std::string& reason) {
@@ -436,7 +434,7 @@ void BLASTBufferQueue::transactionCallback(nsecs_t /*latchTime*/, const sp<Fence
436434

437435
void BLASTBufferQueue::flushShadowQueue() {
438436
BQA_LOGV("flushShadowQueue");
439-
int numFramesToFlush = mNumFrameAvailable;
437+
int32_t numFramesToFlush = mNumFrameAvailable;
440438
while (numFramesToFlush > 0) {
441439
acquireNextBufferLocked(std::nullopt);
442440
numFramesToFlush--;

0 commit comments

Comments
 (0)