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

Commit be43f4eb authored by Vishnu Nair's avatar Vishnu Nair
Browse files

Separate blast sync for surface view from blast adapter

Allow enabling blast adapter for surfaceview without enabling
blast sync.

Bug: 175594838
Test: open bubbles with sv blast adapater enabled
Change-Id: I6bd95651c087d3ae38d5b14ac1011a9b87639223
parent fb62e638
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;
    }
}