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

Change-Id: Ic483ac97d600d895a82d3218ed0ab8ba3eb559c1
This commit is contained in:
TreeHugger Robot
2020-04-06 21:31:56 +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();
}