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

Commit eac041f6 authored by Vishnu Nair's avatar Vishnu Nair Committed by Android (Google) Code Review
Browse files

Merge "Separate blast sync for surface view from blast adapter"

parents 541ee480 be43f4eb
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -232,6 +232,7 @@ public class SurfaceView extends View implements ViewRootImpl.SurfaceChangedCall
    private final Matrix mTmpMatrix = new Matrix();

    SurfaceControlViewHost.SurfacePackage mSurfacePackage;
    private final boolean mUseBlastSync = false;

    /**
     * Returns {@code true} if buffers should be submitted via blast
@@ -1922,6 +1923,6 @@ public class SurfaceView extends View implements ViewRootImpl.SurfaceChangedCall
    }

    private boolean useBLASTSync(ViewRootImpl viewRoot) {
        return viewRoot.useBLAST() && mUseBlastAdapter;
        return viewRoot.useBLAST() && mUseBlastAdapter && mUseBlastSync;
    }
}