summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Vishnu Nair <vishnun@google.com> 2021-05-10 16:27:51 -0700
committer Vishnu Nair <vishnun@google.com> 2021-05-10 23:29:18 +0000
commitf9cb20ab207fd65c1b833e9dfb670eaa9cdf64a1 (patch)
tree8b8da6eae5b0938672c4e0a7bef07b2e2afee7df
parent06784f2b9f5c6c6274b2a2a82b413f3d460e3257 (diff)
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
-rw-r--r--libs/gui/SurfaceControl.cpp2
1 files changed, 1 insertions, 1 deletions
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);
}
}