summaryrefslogtreecommitdiffstats
path: root/src/render/backend/managers_p.h
diff options
context:
space:
mode:
authorQt Forward Merge Bot <qt_forward_merge_bot@qt-project.org>2018-07-14 03:00:40 +0200
committerQt Forward Merge Bot <qt_forward_merge_bot@qt-project.org>2018-07-14 03:00:40 +0200
commit21a494762883e7167f18aac104320958edef43f7 (patch)
treefbb1902c70b56608f1a753d71a265358a7ba5f9d /src/render/backend/managers_p.h
parent1be2766f3294bd13b7c60bdd0f7483a4aa59a3e0 (diff)
parentc39e20dcc693b525f2ee2259e864487d664c3856 (diff)
Merge remote-tracking branch 'origin/5.11' into dev
Diffstat (limited to 'src/render/backend/managers_p.h')
-rw-r--r--src/render/backend/managers_p.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/render/backend/managers_p.h b/src/render/backend/managers_p.h
index a8e736513..c4d873ddc 100644
--- a/src/render/backend/managers_p.h
+++ b/src/render/backend/managers_p.h
@@ -230,12 +230,27 @@ public:
m_textureIdsToCleanup.push_back(id);
}
+ // Called in AspectThread by Texture node functor create
+ void removeTextureIdToCleanup(Qt3DCore::QNodeId id)
+ {
+ m_textureIdsToCleanup.removeAll(id);
+ }
+
// Called by RenderThread in updateGLResources (locked)
QVector<Qt3DCore::QNodeId> takeTexturesIdsToCleanup()
{
return std::move(m_textureIdsToCleanup);
}
+#ifdef QT_BUILD_INTERNAL
+ // For unit testing purposes only
+ QVector<Qt3DCore::QNodeId> textureIdsToCleanup() const
+ {
+ return m_textureIdsToCleanup;
+ }
+
+#endif
+
private:
QVector<Qt3DCore::QNodeId> m_textureIdsToCleanup;
};