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

Commit ac4ee962 authored by Midas Chien's avatar Midas Chien Committed by Android (Google) Code Review
Browse files

Merge "composer: vts: send refresh frame even composition changes" into rvc-dev

parents 615e726e 2f5aec70
Loading
Loading
Loading
Loading
+8 −5
Original line number Original line Diff line number Diff line
@@ -414,12 +414,9 @@ void GraphicsComposerHidlCommandTest::sendRefreshFrame(const VsyncPeriodChangeTi


    mWriter->validateDisplay();
    mWriter->validateDisplay();
    execute();
    execute();
    if (mReader->mCompositionChanges.size() != 0) {
        GTEST_SUCCEED() << "Composition change requested, skipping test";
        return;
    }

    ASSERT_EQ(0, mReader->mErrors.size());
    ASSERT_EQ(0, mReader->mErrors.size());
    mReader->mCompositionChanges.clear();

    mWriter->presentDisplay();
    mWriter->presentDisplay();
    execute();
    execute();
    ASSERT_EQ(0, mReader->mErrors.size());
    ASSERT_EQ(0, mReader->mErrors.size());
@@ -427,8 +424,14 @@ void GraphicsComposerHidlCommandTest::sendRefreshFrame(const VsyncPeriodChangeTi
    mWriter->selectLayer(layer);
    mWriter->selectLayer(layer);
    auto handle2 = allocate();
    auto handle2 = allocate();
    ASSERT_NE(nullptr, handle2);
    ASSERT_NE(nullptr, handle2);

    mWriter->setLayerBuffer(0, handle2, -1);
    mWriter->setLayerBuffer(0, handle2, -1);
    mWriter->setLayerSurfaceDamage(std::vector<IComposerClient::Rect>(1, {0, 0, 10, 10}));
    mWriter->setLayerSurfaceDamage(std::vector<IComposerClient::Rect>(1, {0, 0, 10, 10}));
    mWriter->validateDisplay();
    execute();
    ASSERT_EQ(0, mReader->mErrors.size());
    mReader->mCompositionChanges.clear();

    mWriter->presentDisplay();
    mWriter->presentDisplay();
    execute();
    execute();
}
}