Loading libs/gui/BufferQueueProducer.cpp +4 −3 Original line number Diff line number Diff line Loading @@ -381,7 +381,6 @@ status_t BufferQueueProducer::dequeueBuffer(int* outSlot, sp<android::Fence>* ou { // Autolock scope Mutex::Autolock lock(mCore->mMutex); mCore->waitWhileAllocatingLocked(); if (format == 0) { format = mCore->mDefaultBufferFormat; Loading Loading @@ -1345,7 +1344,9 @@ void BufferQueueProducer::allocateBuffers(uint32_t width, uint32_t height, return; } newBufferCount = mCore->mFreeSlots.size(); // Only allocate one buffer at a time to reduce risks of overlapping an allocation from // both allocateBuffers and dequeueBuffer. newBufferCount = mCore->mFreeSlots.empty() ? 0 : 1; if (newBufferCount == 0) { return; } Loading libs/gui/IGraphicBufferProducer.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -355,7 +355,7 @@ public: data.writeUint32(height); data.writeInt32(static_cast<int32_t>(format)); data.writeUint64(usage); status_t result = remote()->transact(ALLOCATE_BUFFERS, data, &reply); status_t result = remote()->transact(ALLOCATE_BUFFERS, data, &reply, TF_ONE_WAY); if (result != NO_ERROR) { ALOGE("allocateBuffers failed to transact: %d", result); } Loading libs/gui/Surface.cpp +5 −1 Original line number Diff line number Diff line Loading @@ -464,8 +464,12 @@ int Surface::setSwapInterval(int interval) { if (interval > maxSwapInterval) interval = maxSwapInterval; const bool wasSwapIntervalZero = mSwapIntervalZero; mSwapIntervalZero = (interval == 0); if (mSwapIntervalZero != wasSwapIntervalZero) { mGraphicBufferProducer->setAsyncMode(mSwapIntervalZero); } return NO_ERROR; } Loading Loading
libs/gui/BufferQueueProducer.cpp +4 −3 Original line number Diff line number Diff line Loading @@ -381,7 +381,6 @@ status_t BufferQueueProducer::dequeueBuffer(int* outSlot, sp<android::Fence>* ou { // Autolock scope Mutex::Autolock lock(mCore->mMutex); mCore->waitWhileAllocatingLocked(); if (format == 0) { format = mCore->mDefaultBufferFormat; Loading Loading @@ -1345,7 +1344,9 @@ void BufferQueueProducer::allocateBuffers(uint32_t width, uint32_t height, return; } newBufferCount = mCore->mFreeSlots.size(); // Only allocate one buffer at a time to reduce risks of overlapping an allocation from // both allocateBuffers and dequeueBuffer. newBufferCount = mCore->mFreeSlots.empty() ? 0 : 1; if (newBufferCount == 0) { return; } Loading
libs/gui/IGraphicBufferProducer.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -355,7 +355,7 @@ public: data.writeUint32(height); data.writeInt32(static_cast<int32_t>(format)); data.writeUint64(usage); status_t result = remote()->transact(ALLOCATE_BUFFERS, data, &reply); status_t result = remote()->transact(ALLOCATE_BUFFERS, data, &reply, TF_ONE_WAY); if (result != NO_ERROR) { ALOGE("allocateBuffers failed to transact: %d", result); } Loading
libs/gui/Surface.cpp +5 −1 Original line number Diff line number Diff line Loading @@ -464,8 +464,12 @@ int Surface::setSwapInterval(int interval) { if (interval > maxSwapInterval) interval = maxSwapInterval; const bool wasSwapIntervalZero = mSwapIntervalZero; mSwapIntervalZero = (interval == 0); if (mSwapIntervalZero != wasSwapIntervalZero) { mGraphicBufferProducer->setAsyncMode(mSwapIntervalZero); } return NO_ERROR; } Loading