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

Commit 6270d198 authored by Melody Hsu's avatar Melody Hsu
Browse files

[legacy sf flag] - Remove enableNewFrontEnd()

There is no need to specially enable the new SF frontend
once the legacy frontend is removed. This method can be
removed from any test suites.

Bug: b/330785038
Test: presubmit
Test: atest LayerHistoryIntegrationTest
Change-Id: I2e94156c49b79bbcc779a65997e184a2e4eb1660
parent 9db32ff2
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -1003,8 +1003,6 @@ protected:
        mappings.push_back(std::make_pair(kAppId1, kThreshold1));
        mappings.push_back(std::make_pair(kAppId2, kThreshold2));

        mFlinger.enableNewFrontEnd();

        mScheduler->onActiveDisplayAreaChanged(DISPLAY_WIDTH * DISPLAY_HEIGHT);
        mScheduler->updateSmallAreaDetection(mappings);
    }
+0 −5
Original line number Diff line number Diff line
@@ -691,11 +691,6 @@ public:
        return mFlinger->initTransactionTraceWriter();
    }

    void enableNewFrontEnd() {
        mFlinger->mLayerLifecycleManagerEnabled = true;
        mFlinger->mLegacyFrontEndEnabled = false;
    }

    void notifyExpectedPresentIfRequired(PhysicalDisplayId displayId, Period vsyncPeriod,
                                         TimePoint expectedPresentTime, Fps frameInterval,
                                         std::optional<Period> timeoutOpt) {