Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e410f1ff authored by Rob Carr's avatar Rob Carr Committed by Android (Google) Code Review
Browse files

Merge "SurfaceView: Remove deferred transaction" into sc-dev

parents a2dce611 ec24677c
Loading
Loading
Loading
Loading
+0 −14
Original line number Diff line number Diff line
@@ -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) {