aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/scenegraph/qsgcontextplugin_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/quick/scenegraph/qsgcontextplugin_p.h')
-rw-r--r--src/quick/scenegraph/qsgcontextplugin_p.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/quick/scenegraph/qsgcontextplugin_p.h b/src/quick/scenegraph/qsgcontextplugin_p.h
index a480ee51eb..21924c90ac 100644
--- a/src/quick/scenegraph/qsgcontextplugin_p.h
+++ b/src/quick/scenegraph/qsgcontextplugin_p.h
@@ -46,6 +46,8 @@
#include <QtCore/qplugin.h>
#include <QtCore/qfactoryinterface.h>
+#include <QDeclarativeImageProvider>
+
QT_BEGIN_HEADER
QT_BEGIN_NAMESPACE
@@ -55,6 +57,8 @@ class QSGContext;
struct Q_QUICK_EXPORT QSGContextFactoryInterface : public QFactoryInterface
{
virtual QSGContext *create(const QString &key) const = 0;
+
+ virtual QDeclarativeTextureFactory *createTextureFactoryFromImage(const QImage &image) = 0;
};
#define QSGContextFactoryInterface_iid \
@@ -71,6 +75,8 @@ public:
virtual QStringList keys() const = 0;
virtual QSGContext *create(const QString &key) const = 0;
+
+ virtual QDeclarativeTextureFactory *createTextureFactoryFromImage(const QImage &image) { return 0; }
};
QT_END_NAMESPACE