aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/scenegraph/adaptations
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <[email protected]>2020-06-11 12:35:04 +0200
committerEskil Abrahamsen Blomfeldt <[email protected]>2020-06-11 22:23:48 +0200
commit2cb24f7054e1105be0dcb1a4d61a5b52d62d1a55 (patch)
tree6e059ba5184c0e7b618a874f581dfc63ed0e3f06 /src/quick/scenegraph/adaptations
parent66056aba7b47c147b4cf9fd70a855dd15b8a9eb6 (diff)
Move QSGRenderContext::RenderMode to QSGRendererInterface
We want to be able to use this enum from the public API, so we move it out to a suitable public class. Task-number: QTBUG-84695 Change-Id: I8a3860ecfd0da7990941540bcf39fb0c2bf0ff83 Reviewed-by: Laszlo Agocs <[email protected]>
Diffstat (limited to 'src/quick/scenegraph/adaptations')
-rw-r--r--src/quick/scenegraph/adaptations/software/qsgsoftwarecontext.cpp2
-rw-r--r--src/quick/scenegraph/adaptations/software/qsgsoftwarecontext_p.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/quick/scenegraph/adaptations/software/qsgsoftwarecontext.cpp b/src/quick/scenegraph/adaptations/software/qsgsoftwarecontext.cpp
index 4f61e615f6..cb2af431f8 100644
--- a/src/quick/scenegraph/adaptations/software/qsgsoftwarecontext.cpp
+++ b/src/quick/scenegraph/adaptations/software/qsgsoftwarecontext.cpp
@@ -151,7 +151,7 @@ QSGTexture *QSGSoftwareRenderContext::createTexture(const QImage &image, uint fl
return new QSGSoftwarePixmapTexture(image, flags);
}
-QSGRenderer *QSGSoftwareRenderContext::createRenderer(RenderMode)
+QSGRenderer *QSGSoftwareRenderContext::createRenderer(QSGRendererInterface::RenderMode)
{
return new QSGSoftwareRenderer(this);
}
diff --git a/src/quick/scenegraph/adaptations/software/qsgsoftwarecontext_p.h b/src/quick/scenegraph/adaptations/software/qsgsoftwarecontext_p.h
index c523bfbb13..feb664cfd1 100644
--- a/src/quick/scenegraph/adaptations/software/qsgsoftwarecontext_p.h
+++ b/src/quick/scenegraph/adaptations/software/qsgsoftwarecontext_p.h
@@ -74,7 +74,7 @@ public:
void invalidate() override;
void renderNextFrame(QSGRenderer *renderer) override;
QSGTexture *createTexture(const QImage &image, uint flags = CreateTexture_Alpha) const override;
- QSGRenderer *createRenderer(RenderMode) override;
+ QSGRenderer *createRenderer(QSGRendererInterface::RenderMode) override;
int maxTextureSize() const override;
bool m_initialized;