Merge "SurfaceView: Use BLAST transaction when visibility changes." into rvc-dev

This commit is contained in:
TreeHugger Robot
2020-04-06 20:31:47 +00:00
committed by Android (Google) Code Review

View File

@@ -1037,7 +1037,7 @@ public class SurfaceView extends View implements ViewRootImpl.SurfaceChangedCall
mTmpTransaction.setWindowCrop(mSurfaceControl, mSurfaceWidth, mTmpTransaction.setWindowCrop(mSurfaceControl, mSurfaceWidth,
mSurfaceHeight); mSurfaceHeight);
} }
} else if ((layoutSizeChanged || positionChanged) && } else if ((layoutSizeChanged || positionChanged || visibleChanged) &&
viewRoot.useBLAST()) { viewRoot.useBLAST()) {
viewRoot.setUseBLASTSyncTransaction(); viewRoot.setUseBLASTSyncTransaction();
} }