Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0f454641 authored by Robert Carr's avatar Robert Carr Committed by Automerger Merge Worker
Browse files

BLASTBufferQueue: Avoid duplicate calls to setDefaultBufferSize am: fc416512...

BLASTBufferQueue: Avoid duplicate calls to setDefaultBufferSize am: fc416512 am: d4770ee2 am: 7248550e am: d56c3398

Change-Id: I35235688fe70d57580c4ad4cac17b1868b5a384f
parents e58d4ba3 d56c3398
Loading
Loading
Loading
Loading
+6 −3
Original line number Original line Diff line number Diff line
@@ -132,10 +132,13 @@ BLASTBufferQueue::BLASTBufferQueue(const sp<SurfaceControl>& surface, int width,
void BLASTBufferQueue::update(const sp<SurfaceControl>& surface, int width, int height) {
void BLASTBufferQueue::update(const sp<SurfaceControl>& surface, int width, int height) {
    std::unique_lock _lock{mMutex};
    std::unique_lock _lock{mMutex};
    mSurfaceControl = surface;
    mSurfaceControl = surface;

    if (mWidth != width || mHeight != height) {
        mWidth = width;
        mWidth = width;
        mHeight = height;
        mHeight = height;
        mBufferItemConsumer->setDefaultBufferSize(mWidth, mHeight);
        mBufferItemConsumer->setDefaultBufferSize(mWidth, mHeight);
    }
    }
}


static void transactionCallbackThunk(void* context, nsecs_t latchTime,
static void transactionCallbackThunk(void* context, nsecs_t latchTime,
                                     const sp<Fence>& presentFence,
                                     const sp<Fence>& presentFence,