Enable blast adapater for SurfaceView

Enable buffers to go through BLASTBufferQueue
in SurfaceView.

Bug: 168917217

Test: atest SurfaceViewBufferTests & manual tests see bug for history
Change-Id: I4636f51531b35208fb2f10334876d5e65b0bb364
This commit is contained in:
Vishnu Nair
2021-01-06 15:14:37 -08:00
parent a3b6beaff1
commit 7fa26f552b

View File

@@ -240,7 +240,7 @@ public class SurfaceView extends View implements ViewRootImpl.SurfaceChangedCall
private static boolean useBlastAdapter(Context context) {
ContentResolver contentResolver = context.getContentResolver();
return Settings.Global.getInt(contentResolver,
Settings.Global.DEVELOPMENT_USE_BLAST_ADAPTER_SV, 0 /* default */) == 1;
Settings.Global.DEVELOPMENT_USE_BLAST_ADAPTER_SV, 1 /* default */) == 1;
}
private final boolean mUseBlastAdapter;