diff options
author | Paul Lemire <paul.lemire@kdab.com> | 2018-08-20 10:40:03 +0200 |
---|---|---|
committer | Paul Lemire <paul.lemire@kdab.com> | 2018-10-11 11:35:37 +0000 |
commit | e2e8ecab8c71f3ef6932cd361da99127c2a79f57 (patch) | |
tree | 649c48cf9cd7ea3d4f8d756339c8d55af8a4bf6c /src/render/texture/texture_p.h | |
parent | b4e52d6a8deef3d268ea97cb5e4ea14948117aad (diff) |
Texture: update renderer to send handle and handle type on frontend textures
Change-Id: I78047f354a9f7cdbb56bd2b5dee79cb77e6cb749
Task-number: QTBUG-70055
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src/render/texture/texture_p.h')
-rw-r--r-- | src/render/texture/texture_p.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/render/texture/texture_p.h b/src/render/texture/texture_p.h index d48e35b0c..705d86e68 100644 --- a/src/render/texture/texture_p.h +++ b/src/render/texture/texture_p.h @@ -142,6 +142,13 @@ public: }; Q_DECLARE_FLAGS(DirtyFlags, DirtyFlag) + struct TextureUpdateInfo + { + TextureProperties properties; + QVariant handle; + QAbstractTexture::HandleType handleType; + }; + void addDirtyFlag(DirtyFlags flags); DirtyFlags dirtyFlags(); void unsetDirty(); @@ -159,7 +166,7 @@ public: inline int sharedTextureId() const { return m_sharedTextureId; } void setDataGenerator(const QTextureGeneratorPtr &generator); - void updatePropertiesAndNotify(const TextureProperties &propreties); + void updatePropertiesAndNotify(const TextureUpdateInfo &updateInfo); bool isValid(TextureImageManager *manager) const; private: void initializeFromPeer(const Qt3DCore::QNodeCreatedChangeBasePtr &change) final; |