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

Commit 1b8b7cd7 authored by Midas Chien's avatar Midas Chien Committed by Automerger Merge Worker
Browse files

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

Original change: undetermined

Change-Id: Ib682f3d86bbed7be1d75a88d9738b8d6553f4941
parents f7cc7ad5 ac4ee962
Loading
Loading
Loading
Loading
+8 −5
Original line number Diff line number Diff line
@@ -414,12 +414,9 @@ void GraphicsComposerHidlCommandTest::sendRefreshFrame(const VsyncPeriodChangeTi

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

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

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

    mWriter->setLayerBuffer(0, handle2, -1);
    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();
    execute();
}