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

Commit b38bb750 authored by Marc Hittinger's avatar Marc Hittinger
Browse files

Update defaults for isHighEndGfx settings.

Enable ThreadedRenderer for persistent process by default, and do not
use black background behind status bar.

Test: Manually tested and profiled memory performance.
Change-Id: Ic6c535745f6f216e51c7966924268e750dbd355e
parent 21785d63
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -5472,15 +5472,6 @@ public final class ActivityThread {
        android.ddm.DdmHandleAppName.setAppName(data.processName,
                                                UserHandle.myUserId());

        if (data.persistent) {
            // Persistent processes on low-memory devices do not get to
            // use hardware accelerated drawing, since this can add too much
            // overhead to the process.
            if (!ActivityManager.isHighEndGfx()) {
                ThreadedRenderer.disable(false);
            }
        }

        if (mProfiler.profileFd != null) {
            mProfiler.startProfiling();
        }
+0 −6
Original line number Diff line number Diff line
@@ -1010,12 +1010,6 @@ public class StatusBar extends SystemUI implements DemoMode,
                new IconManager((ViewGroup) mKeyguardStatusBar.findViewById(R.id.statusIcons)));
        mIconController = Dependency.get(StatusBarIconController.class);

        if (!ActivityManager.isHighEndGfx()) {
            mStatusBarWindow.setBackground(null);
            mNotificationPanel.setBackground(new FastColorDrawable(context.getColor(
                    R.color.notification_panel_solid_background)));
        }

        mHeadsUpManager = new HeadsUpManager(context, mStatusBarWindow, mGroupManager);
        mHeadsUpManager.setBar(this);
        mHeadsUpManager.addListener(this);