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

Change-Id: Id503be9d04692c2db01b84ff1a6dd1a46ed1bb6a
This commit is contained in:
TreeHugger Robot
2020-04-06 20:53:18 +00:00
committed by Automerger Merge Worker

View File

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