aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/scenegraph/qsgcontextplugin_p.h
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar.sletta@nokia.com>2012-01-09 08:43:34 +0100
committerQt by Nokia <qt-info@nokia.com>2012-01-13 09:27:22 +0100
commitc3b4d679684434d318c75474f426d5c61a4b239c (patch)
tree4f512ff74a2ab1fa957db2a123c447156a83df69 /src/quick/scenegraph/qsgcontextplugin_p.h
parentc194b012182c3ae495bb7a740f02a5a9f5b3c3b3 (diff)
Reintroduce plugin support for asynchronous hardware specific textures
Change-Id: Iad36542d2137e7a6470009c308ece3de389907c1 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
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