From f9cb20ab207fd65c1b833e9dfb670eaa9cdf64a1 Mon Sep 17 00:00:00 2001 From: Vishnu Nair Date: Mon, 10 May 2021 16:27:51 -0700 Subject: Fix java SurfaceControl BBQ wrapper update path We were passing in the wrong surface control by mistake which meant BlastBufferQueue would fight with the parent SurfaceControl. Test: repro steps in bug Fixes: 187397208 Change-Id: I71b1fa1d2d537411d4e6a3ec09c1189a1e7199ff --- libs/gui/SurfaceControl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/gui/SurfaceControl.cpp') diff --git a/libs/gui/SurfaceControl.cpp b/libs/gui/SurfaceControl.cpp index 37750faa8f..d7c07b9755 100644 --- a/libs/gui/SurfaceControl.cpp +++ b/libs/gui/SurfaceControl.cpp @@ -166,7 +166,7 @@ void SurfaceControl::updateDefaultBufferSize(uint32_t width, uint32_t height) { Mutex::Autolock _l(mLock); mWidth = width; mHeight = height; if (mBbq) { - mBbq->update(this, width, height, mFormat); + mBbq->update(mBbqChild, width, height, mFormat); } } -- cgit v1.2.3-59-g8ed1b