diff options
Diffstat (limited to 'src/quick/scenegraph/qsgdefaultcontext_p.h')
-rw-r--r-- | src/quick/scenegraph/qsgdefaultcontext_p.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/quick/scenegraph/qsgdefaultcontext_p.h b/src/quick/scenegraph/qsgdefaultcontext_p.h index 0569b7c321..923d1ee7ec 100644 --- a/src/quick/scenegraph/qsgdefaultcontext_p.h +++ b/src/quick/scenegraph/qsgdefaultcontext_p.h @@ -53,10 +53,11 @@ #include <QtQuick/private/qsgcontext_p.h> #include <QtQuick/private/qsgdistancefieldglyphnode_p.h> +#include "qsgrendererinterface.h" QT_BEGIN_NAMESPACE -class QSGDefaultContext : public QSGContext +class QSGDefaultContext : public QSGContext, public QSGRendererInterface { public: QSGDefaultContext(QObject *parent = 0); @@ -72,10 +73,13 @@ public: QSGNinePatchNode *createNinePatchNode() override; QSGLayer *createLayer(QSGRenderContext *renderContext) override; QSurfaceFormat defaultSurfaceFormat() const override; + QSGRendererInterface *rendererInterface(QSGRenderContext *renderContext) override; void setDistanceFieldEnabled(bool enabled); bool isDistanceFieldEnabled() const; + GraphicsAPI graphicsAPI() const override; + private: QMutex m_mutex; QSGContext::AntialiasingMethod m_antialiasingMethod; |