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

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