Just pass the bigger textures from the !m_fastPath to the textures cache

It's a really cheap lookup, and maybe we get to skip some textures
uploading

Reviewed by David Edmundson
This commit is contained in:
Aleix Pol 2014-07-25 12:57:16 +02:00
parent ab0740228c
commit daf7981820

View File

@ -480,9 +480,7 @@ QSGNode *FrameSvgItem::updatePaintNode(QSGNode *oldNode, QQuickItem::UpdatePaint
if ((m_textureChanged || m_sizeChanged) || textureNode->texture()->textureSize() != m_frameSvg->size()) {
QImage image = m_frameSvg->framePixmap().toImage();
QSGTexture *texture = window()->createTextureFromImage(image);
texture->setFiltering(QSGTexture::Nearest);
textureNode->setTexture(QSharedPointer<QSGTexture>(texture));
textureNode->setTexture(loadTexture(window(), image));
textureNode->setRect(0, 0, width(), height());
m_textureChanged = false;