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

Commit 5c35ea32 authored by Vishnu Nair's avatar Vishnu Nair
Browse files

Change default value of mLayerLifecycleManagerEnabled to true

Force all unit tests to use new front end logic.

Flag: EXEMPT removing flagged code
Test: presubmit
Bug: 330785038
Change-Id: I2e38856debb3741684abbe8174fc1d720d1ac8ec
parent fd15975a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1507,7 +1507,7 @@ private:

    bool mPowerHintSessionEnabled;

    bool mLayerLifecycleManagerEnabled = false;
    bool mLayerLifecycleManagerEnabled = true;
    // Whether a display should be turned on when initialized
    bool mSkipPowerOnForQuiescent;

+0 −1
Original line number Diff line number Diff line
@@ -114,7 +114,6 @@ public:
        mFlinger.setupComposer(std::unique_ptr<Hwc2::Composer>(mComposer));
        mFlinger.setupPowerAdvisor(std::unique_ptr<Hwc2::PowerAdvisor>(mPowerAdvisor));
        mFlinger.mutableMaxRenderTargetSize() = 16384;
        mFlinger.enableLayerLifecycleManager();
    }

    ~CompositionTest() {
+0 −2
Original line number Diff line number Diff line
@@ -28,7 +28,6 @@ namespace android {
class ColorMatrixTest : public CommitAndCompositeTest {};

TEST_F(ColorMatrixTest, colorMatrixChanged) {
    mFlinger.enableLayerLifecycleManager();
    EXPECT_COLOR_MATRIX_CHANGED(true, true);
    mFlinger.mutableTransactionFlags() |= eTransactionNeeded;

@@ -46,7 +45,6 @@ TEST_F(ColorMatrixTest, colorMatrixChanged) {
}

TEST_F(ColorMatrixTest, colorMatrixChangedAfterDisplayTransaction) {
    mFlinger.enableLayerLifecycleManager();
    EXPECT_COLOR_MATRIX_CHANGED(true, true);
    mFlinger.mutableTransactionFlags() |= eTransactionNeeded;

+0 −4
Original line number Diff line number Diff line
@@ -733,10 +733,6 @@ public:
        return mFlinger->initTransactionTraceWriter();
    }

    // Needed since mLayerLifecycleManagerEnabled is false by default and must
    // be enabled for tests to go through the new front end path.
    void enableLayerLifecycleManager() { mFlinger->mLayerLifecycleManagerEnabled = true; }

    void notifyExpectedPresentIfRequired(PhysicalDisplayId displayId, Period vsyncPeriod,
                                         TimePoint expectedPresentTime, Fps frameInterval,
                                         std::optional<Period> timeoutOpt) {
+0 −1
Original line number Diff line number Diff line
@@ -58,7 +58,6 @@ public:
        mFlinger.setupMockScheduler();
        mFlinger.setupRenderEngine(std::unique_ptr<renderengine::RenderEngine>(mRenderEngine));
        mFlinger.flinger()->addTransactionReadyFilters();
        mFlinger.enableLayerLifecycleManager();
    }

    ~TransactionApplicationTest() {