Skip to content

Commit 89a466b

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
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>
2 parents 66e80a3 + 003da7d commit 89a466b

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)