Merge "SurfaceView: Synchronize visibility changes with VRI frame"

This commit is contained in:
Vishnu Nair
2022-01-06 19:00:13 +00:00
committed by Android (Google) Code Review

View File

@@ -972,9 +972,9 @@ public class SurfaceView extends View implements ViewRootImpl.SurfaceChangedCall
mParentSurfaceSequenceId = viewRoot.getSurfaceSequenceId();
if (mViewVisibility) {
mTmpTransaction.show(mSurfaceControl);
geometryTransaction.show(mSurfaceControl);
} else {
mTmpTransaction.hide(mSurfaceControl);
geometryTransaction.hide(mSurfaceControl);
}
if (mSurfacePackage != null) {