SurfaceControlViewHost: Call doDie with true

If we pass immediate=false to the doDie without
updating the visibility, we may destroy the hardware renderer
but then try to draw again anyway, and then crash. It seems
theres no reason we can't call immediate=true and
properly shut down immediately.

Bug: 159250432
Test: Existing tests pass
Change-Id: Ibc6be8901be10c0985681d83f4ce16dd1ab54925
This commit is contained in:
Robert Carr
2020-06-19 13:08:22 -07:00
parent 55c4e43169
commit 5409e24105

View File

@@ -273,6 +273,6 @@ public class SurfaceControlViewHost {
*/
public void release() {
// ViewRoot will release mSurfaceControl for us.
mViewRoot.die(false /* immediate */);
mViewRoot.die(true /* immediate */);
}
}