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
diff --git a/libs/gui/SurfaceControl.cpp b/libs/gui/SurfaceControl.cpp
index 37750fa..d7c07b9 100644
--- a/libs/gui/SurfaceControl.cpp
+++ b/libs/gui/SurfaceControl.cpp
@@ -166,7 +166,7 @@
Mutex::Autolock _l(mLock);
mWidth = width; mHeight = height;
if (mBbq) {
- mBbq->update(this, width, height, mFormat);
+ mBbq->update(mBbqChild, width, height, mFormat);
}
}