Loading libs/gui/BLASTBufferQueue.cpp +6 −3 Original line number Diff line number Diff line Loading @@ -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, Loading Loading
libs/gui/BLASTBufferQueue.cpp +6 −3 Original line number Diff line number Diff line Loading @@ -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, Loading