diff options
Diffstat (limited to 'src/quick/scenegraph/qsgadaptationlayer.cpp')
-rw-r--r-- | src/quick/scenegraph/qsgadaptationlayer.cpp | 29 |
1 files changed, 21 insertions, 8 deletions
diff --git a/src/quick/scenegraph/qsgadaptationlayer.cpp b/src/quick/scenegraph/qsgadaptationlayer.cpp index 252e5a9c55..f7b07d724a 100644 --- a/src/quick/scenegraph/qsgadaptationlayer.cpp +++ b/src/quick/scenegraph/qsgadaptationlayer.cpp @@ -306,6 +306,19 @@ void QSGDistanceFieldGlyphCache::updateTexture(uint oldTex, uint newTex, const Q } } +void QSGDistanceFieldGlyphCache::updateRhiTexture(QRhiTexture *oldTex, QRhiTexture *newTex, const QSize &newTexSize) +{ + int count = m_textures.count(); + for (int i = 0; i < count; ++i) { + Texture &tex = m_textures[i]; + if (tex.texture == oldTex) { + tex.texture = newTex; + tex.size = newTexSize; + return; + } + } +} + #if defined(QSG_DISTANCEFIELD_CACHE_DEBUG) #include <QtGui/qopenglfunctions.h> @@ -526,14 +539,6 @@ void QSGNodeVisitorEx::visitChildren(QSGNode *node) } #ifndef QT_NO_DEBUG_STREAM -QDebug operator<<(QDebug debug, const QSGGuiThreadShaderEffectManager::ShaderInfo::InputParameter &p) -{ - QDebugStateSaver saver(debug); - debug.space(); - debug << p.semanticName << "semindex" << p.semanticIndex; - return debug; -} - QDebug operator<<(QDebug debug, const QSGGuiThreadShaderEffectManager::ShaderInfo::Variable &v) { QDebugStateSaver saver(debug); @@ -564,6 +569,14 @@ QDebug operator<<(QDebug debug, const QSGShaderEffectNode::VariableData &vd) } #endif +/*! + \internal + */ +QSGLayer::QSGLayer(QSGTexturePrivate &dd) + : QSGDynamicTexture(dd) +{ +} + QT_END_NAMESPACE #include "moc_qsgadaptationlayer_p.cpp" |