[plasma/kwin] autotests/drm: autotests: Pass OutputFrame to OutputLayer::beginFrame()

Vlad Zahorodnii <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit a6fd7ff11f27c132a0c5c06f2d87396cea708c24 by Vlad Zahorodnii.
Committed on 19/08/2026 at 06:32.
Pushed by vladz into branch 'master'.

autotests: Pass OutputFrame to OutputLayer::beginFrame()

So beginFrame() matches endFrame(). An OutputFrame is passed to
endFrame().

M  +1    -1    autotests/drm/mockDrmTest.cpp

https://invent.kde.org/plasma/kwin/-/commit/a6fd7ff11f27c132a0c5c06f2d87396cea708c24

diff --git a/autotests/drm/mockDrmTest.cpp b/autotests/drm/mockDrmTest.cpp
index 752665f548c..216d9d713d8 100644
--- a/autotests/drm/mockDrmTest.cpp
+++ b/autotests/drm/mockDrmTest.cpp
@@ -464,9 +464,9 @@ void DrmTest::testModeset()
     QCOMPARE(gpu->drmOutputs().size(), 1);
     const auto output = gpu->drmOutputs().front();
     const auto layer = renderBackend->compatibleOutputLayers(output).front();
-    layer->beginFrame(nullptr);
     output->renderLoop()->prepareNewFrame();
     const auto frame = std::make_shared<OutputFrame>(output->renderLoop(), std::chrono::nanoseconds(1'000'000'000'000 / output->refreshRate()));
+    layer->beginFrame(frame.get());
     layer->endFrame(Region::infinite(), Region::infinite(), frame.get());
     QVERIFY(output->present({layer}, frame));
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.