aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/scenegraph/adaptations/software
diff options
context:
space:
mode:
authorLaszlo Agocs <[email protected]>2022-12-08 13:58:13 +0100
committerLaszlo Agocs <[email protected]>2022-12-12 18:45:49 +0100
commitc995cbd9bd7739965eaf7a02e16022653802f3b7 (patch)
treeca0bbc921c65ae02b357650af5f242f82ad67c8c /src/quick/scenegraph/adaptations/software
parentc5fb2c10a18a54bb852defc1f1fbf598aecdc90b (diff)
Purge the internal renderSceneGraph function argument list
What we have today is a Qt 5.14/15 leftover where two code paths (OpenGL, QRhi) were handled by making the function take two arguments. Ideally there should be zero arguments to this function. Change-Id: I8376c14ecb553911788265ed6c1d8ba1b6686dbd Reviewed-by: Qt CI Bot <[email protected]> Reviewed-by: Christian Strømme <[email protected]>
Diffstat (limited to 'src/quick/scenegraph/adaptations/software')
-rw-r--r--src/quick/scenegraph/adaptations/software/qsgsoftwarerenderloop.cpp2
-rw-r--r--src/quick/scenegraph/adaptations/software/qsgsoftwarethreadedrenderloop.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/quick/scenegraph/adaptations/software/qsgsoftwarerenderloop.cpp b/src/quick/scenegraph/adaptations/software/qsgsoftwarerenderloop.cpp
index 033cdbfe78..d0da21360c 100644
--- a/src/quick/scenegraph/adaptations/software/qsgsoftwarerenderloop.cpp
+++ b/src/quick/scenegraph/adaptations/software/qsgsoftwarerenderloop.cpp
@@ -139,7 +139,7 @@ void QSGSoftwareRenderLoop::renderWindow(QQuickWindow *window, bool isNewExpose)
if (softwareRenderer)
softwareRenderer->setBackingStore(m_backingStores[window]);
- cd->renderSceneGraph(window->size());
+ cd->renderSceneGraph();
if (profileFrames)
renderTime = renderTimer.nsecsElapsed();
diff --git a/src/quick/scenegraph/adaptations/software/qsgsoftwarethreadedrenderloop.cpp b/src/quick/scenegraph/adaptations/software/qsgsoftwarethreadedrenderloop.cpp
index f0e510423a..54bcdf9b49 100644
--- a/src/quick/scenegraph/adaptations/software/qsgsoftwarethreadedrenderloop.cpp
+++ b/src/quick/scenegraph/adaptations/software/qsgsoftwarethreadedrenderloop.cpp
@@ -294,7 +294,7 @@ bool QSGSoftwareRenderThread::event(QEvent *e)
rc->initialize(nullptr);
wd->syncSceneGraph();
rc->endSync();
- wd->renderSceneGraph(wme->window->size());
+ wd->renderSceneGraph();
*wme->image = backingStore->handle()->toImage();
}
qCDebug(QSG_RASTER_LOG_RENDERLOOP, "RT - WM_Grab - waking gui to handle result");
@@ -473,7 +473,7 @@ void QSGSoftwareRenderThread::syncAndRender()
auto softwareRenderer = static_cast<QSGSoftwareRenderer*>(wd->renderer);
if (softwareRenderer)
softwareRenderer->setBackingStore(backingStore);
- wd->renderSceneGraph(exposedWindow->size());
+ wd->renderSceneGraph();
Q_TRACE(QSG_render_exit);
Q_QUICK_SG_PROFILE_RECORD(QQuickProfiler::SceneGraphRenderLoopFrame,