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

Commit 49d2a0b9 authored by Chris Poultney's avatar Chris Poultney
Browse files

Fix multiple performance regressions

Measured performance with test
TemporaryMediaNotificationTestMicrobenchmark#expandShade_mediaIsShowing,
metric perfetto_ft_surfaceflinger-missed_frames-mean. Regressed value
was ~108, baseline after fix is ~4.4.

Fix: 378596436
Flag: EXEMPT bugfix
Test: manually verified wallpaper save/load with both flag states
Test: locally verified metric returned to baseline
Change-Id: Ic3bf090364a7b8ae675327d6257fef15232190b4
parent 09ba9519
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -194,12 +194,8 @@ public class WallpaperDataParser {
                wallpaper.cropHint.set(0, 0, 0, 0);
                wpdData.mPadding.set(0, 0, 0, 0);
                wallpaper.name = "";
                if (liveWallpaperContentHandling()) {
                    wallpaper.setDescription(new WallpaperDescription.Builder().setComponent(
                            mImageWallpaper).build());
                } else {
                    wallpaper.setComponent(mImageWallpaper);
                }
                // TODO (b/379936272) Find a safe value for wallpaper component. mImageComponent
                // does not work at least on some platforms.
            } else {
                if (wallpaper.wallpaperId <= 0) {
                    wallpaper.wallpaperId = makeWallpaperIdLocked();