diff options
author | Gunnar Sletta <gunnar@sletta.org> | 2014-08-23 09:00:51 +0200 |
---|---|---|
committer | Gunnar Sletta <gunnar@sletta.org> | 2014-08-26 12:26:59 +0200 |
commit | d324db8839c5a06980384d0b2d4e06125bb5a83d (patch) | |
tree | 20f8bc6ff1292d4e830caaf48a88c4dd39bf7e3f /src/quick/items/qquickframebufferobject.h | |
parent | 04f0d937fe8056bb74fe9b6944c6f5b5b6f023f6 (diff) |
Make QQuickFramebufferObject a texture provider.
Change-Id: Ib9cf0f99dc07e4125c4ccd2d45da2839d8af88b6
Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
Diffstat (limited to 'src/quick/items/qquickframebufferobject.h')
-rw-r--r-- | src/quick/items/qquickframebufferobject.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/quick/items/qquickframebufferobject.h b/src/quick/items/qquickframebufferobject.h index 22f8c92f4d..99e68b963e 100644 --- a/src/quick/items/qquickframebufferobject.h +++ b/src/quick/items/qquickframebufferobject.h @@ -75,6 +75,10 @@ public: virtual Renderer *createRenderer() const = 0; + bool isTextureProvider() const Q_DECL_OVERRIDE; + QSGTextureProvider *textureProvider() const Q_DECL_OVERRIDE; + void releaseResources() Q_DECL_OVERRIDE; + protected: void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry); @@ -83,6 +87,9 @@ protected: Q_SIGNALS: void textureFollowsItemSizeChanged(bool); + +private Q_SLOTS: + void invalidateSG(); }; QT_END_NAMESPACE |