Merge "SurfaceView: Use BLAST transaction when visibility changes." into rvc-dev am: 7a851ba728
Change-Id: I066c9b432b97478b70ba1347ad0ab85ee186980b
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user