aboutsummaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qdeclarativeimageprovider.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/declarative/qml/qdeclarativeimageprovider.h')
-rw-r--r--src/declarative/qml/qdeclarativeimageprovider.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/declarative/qml/qdeclarativeimageprovider.h b/src/declarative/qml/qdeclarativeimageprovider.h
index ff11afb1e8..8d35d14ccf 100644
--- a/src/declarative/qml/qdeclarativeimageprovider.h
+++ b/src/declarative/qml/qdeclarativeimageprovider.h
@@ -52,13 +52,16 @@ QT_BEGIN_NAMESPACE
QT_MODULE(Declarative)
class QDeclarativeImageProviderPrivate;
+class QSGTexture;
class Q_DECLARATIVE_EXPORT QDeclarativeImageProvider
{
public:
enum ImageType {
Image,
- Pixmap
+ Pixmap,
+ Texture,
+ Invalid
};
QDeclarativeImageProvider(ImageType type);
@@ -68,6 +71,7 @@ public:
virtual QImage requestImage(const QString &id, QSize *size, const QSize& requestedSize);
virtual QPixmap requestPixmap(const QString &id, QSize *size, const QSize& requestedSize);
+ virtual QSGTexture *requestTexture(const QString &id, QSize *size, const QSize &requestedSize);
private:
QDeclarativeImageProviderPrivate *d;