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

Commit b92fec61 authored by Robert Carr's avatar Robert Carr
Browse files

Flip BLAST flag.

This flag will enable the BLASTBufferQueue adapter for use by ViewRootImpl.
BLASTSync and the BLASTBufferQueue in SurfaceView are still behind seperate flags.

Bug: 168506246
Test: Days of manual testing on multiple devices (stressed: app switching, rotation, SurfaceView, PIP, Split-screen). Multiple presubmits. 5 passing runs of flicker. Systrace inspection. App startup perf tests. Inspection of jankstats from experiment based flip in R dogfood.
Change-Id: I2b6e37884d938d327479977becbbce8e38e521f0
parent 41e42254
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -9757,6 +9757,14 @@ public final class Settings {
        public static final String DEVELOPMENT_RENDER_SHADOWS_IN_COMPOSITOR =
                "render_shadows_in_compositor";
        /**
         * If true, submit buffers using blast in ViewRootImpl.
         * (0 = false, 1 = true)
         * @hide
         */
        public static final String DEVELOPMENT_USE_BLAST_ADAPTER_VR =
                "use_blast_adapter_vr";
        /**
         * If true, submit buffers using blast in SurfaceView.
         * (0 = false, 1 = true)
+1 −0
Original line number Diff line number Diff line
@@ -229,6 +229,7 @@ public class SettingsBackupTest {
                    Settings.Global.DEVELOPMENT_ENABLE_SIZECOMPAT_FREEFORM,
                    Settings.Global.DEVELOPMENT_RENDER_SHADOWS_IN_COMPOSITOR,
                    Settings.Global.DEVELOPMENT_USE_BLAST_ADAPTER_SV,
                    Settings.Global.DEVELOPMENT_USE_BLAST_ADAPTER_VR,
                    Settings.Global.DEVICE_DEMO_MODE,
                    Settings.Global.BATTERY_SAVER_ADAPTIVE_CONSTANTS,
                    Settings.Global.BATTERY_SAVER_CONSTANTS,
+3 −4
Original line number Diff line number Diff line
@@ -1216,9 +1216,9 @@ public class WindowManagerService extends IWindowManager.Stub
        mAnimator = new WindowAnimator(this);
        mRoot = new RootWindowContainer(this);

        mUseBLAST = DeviceConfig.getBoolean(
                    DeviceConfig.NAMESPACE_WINDOW_MANAGER_NATIVE_BOOT,
                    WM_USE_BLAST_ADAPTER_FLAG, false);
        final ContentResolver resolver = context.getContentResolver();
        mUseBLAST = Settings.Global.getInt(resolver,
            Settings.Global.DEVELOPMENT_USE_BLAST_ADAPTER_VR, 1) == 1;

        mSyncEngine = new BLASTSyncEngine(this);

@@ -1296,7 +1296,6 @@ public class WindowManagerService extends IWindowManager.Stub
            }
        }, UserHandle.ALL, suspendPackagesFilter, null, null);

        final ContentResolver resolver = context.getContentResolver();
        // Get persisted window scale setting
        mWindowAnimationScaleSetting = Settings.Global.getFloat(resolver,
                Settings.Global.WINDOW_ANIMATION_SCALE, mWindowAnimationScaleSetting);