SurfaceView: Remove deferred transaction
Replaced with BLASTSync for a few months now. Bug: 168505645 Test: Existing tests pass, this was already non running code. Change-Id: Iee6423e923d8bdedc508c021e63b313787450896
This commit is contained in:
@@ -1390,14 +1390,6 @@ public class SurfaceView extends View implements ViewRootImpl.SurfaceChangedCall
|
||||
viewRoot.mergeWithNextTransaction(mRtTransaction, frameNumber);
|
||||
return;
|
||||
}
|
||||
|
||||
// Otherwise if the if the ViewRoot is not null, use deferred transaction instead.
|
||||
if (frameNumber > 0 && viewRoot != null && viewRoot.mSurface.isValid()
|
||||
&& mSurfaceControl != null) {
|
||||
mRtTransaction.deferTransactionUntil(mSurfaceControl,
|
||||
viewRoot.getSurfaceControl(), frameNumber);
|
||||
}
|
||||
mRtTransaction.apply();
|
||||
}
|
||||
|
||||
private Rect mRTLastReportedPosition = new Rect();
|
||||
@@ -1470,12 +1462,6 @@ public class SurfaceView extends View implements ViewRootImpl.SurfaceChangedCall
|
||||
*/
|
||||
synchronized (mSurfaceControlLock) {
|
||||
final ViewRootImpl viewRoot = getViewRootImpl();
|
||||
boolean deferTransaction = frameNumber > 0 && viewRoot != null
|
||||
&& viewRoot.mSurface.isValid() && !useBLASTSync(viewRoot);
|
||||
if (deferTransaction) {
|
||||
mRtTransaction.deferTransactionUntil(mSurfaceControl,
|
||||
viewRoot.getSurfaceControl(), frameNumber);
|
||||
}
|
||||
|
||||
mRtTransaction.hide(mSurfaceControl);
|
||||
if (mRtReleaseSurfaces) {
|
||||
|
||||
Reference in New Issue
Block a user