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

Commit 7248550e authored by Robert Carr's avatar Robert Carr Committed by Automerger Merge Worker
Browse files

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

Change-Id: I8c0efe3ecc6ea1ad4f5e803fe0507d90db0372ac
parents e23c5837 d4770ee2
Loading
Loading
Loading
Loading
+6 −3
Original line number 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) {
    std::unique_lock _lock{mMutex};
    mSurfaceControl = surface;

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

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