From c3b4d679684434d318c75474f426d5c61a4b239c Mon Sep 17 00:00:00 2001 From: Gunnar Sletta Date: Mon, 9 Jan 2012 08:43:34 +0100 Subject: Reintroduce plugin support for asynchronous hardware specific textures MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Iad36542d2137e7a6470009c308ece3de389907c1 Reviewed-by: Samuel Rødal --- src/quick/scenegraph/qsgcontextplugin_p.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/quick/scenegraph/qsgcontextplugin_p.h') 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 #include +#include + 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 -- cgit v1.2.3