*/
QSGMaterial *QSGGeometryNode::activeMaterial() const
{
- Q_ASSERT_X(dirtyState() == 0, "QSGGeometryNode::activeMaterial()", "function assumes that all dirty states are cleaned up");
if (m_opaque_material && m_opacity > 0.999)
return m_opaque_material;
return m_material;
#ifdef QSG_RUNTIME_DESCRIPTION
d << QSGNodePrivate::description(n);
#endif
- d << "dirty=" << hex << (int) n->dirtyState() << dec;
return d;
}
#ifdef QSG_RUNTIME_DESCRIPTION
d << QSGNodePrivate::description(n);
#endif
- d << "dirty=" << hex << (int) n->dirtyState() << dec << (n->isSubtreeBlocked() ? "*BLOCKED*" : "");
+ d << (n->isSubtreeBlocked() ? "*BLOCKED*" : "");
return d;
}
#ifdef QSG_RUNTIME_DESCRIPTION
d << QSGNodePrivate::description(n);
#endif
- d << "dirty=" << hex << (int) n->dirtyState() << dec << (n->isSubtreeBlocked() ? "*BLOCKED*" : "");
+ d << (n->isSubtreeBlocked() ? "*BLOCKED*" : "");
d << ')';
return d;
}
#ifdef QSG_RUNTIME_DESCRIPTION
d << QSGNodePrivate::description(n);
#endif
- d << "dirty=" << hex << (int) n->dirtyState() << dec;
d << ')';
return d;
}
d << "RootNode(null)";
return d;
}
- d << "RootNode" << hex << (void *) n << "dirty=" << (int) n->dirtyState() << dec
- << (n->isSubtreeBlocked() ? "*BLOCKED*" : "");
+ d << "RootNode" << hex << (void *) n << (n->isSubtreeBlocked() ? "*BLOCKED*" : "");
#ifdef QSG_RUNTIME_DESCRIPTION
d << QSGNodePrivate::description(n);
#endif
break;
case QSGNode::RenderNodeType:
d << "RenderNode(" << hex << (void *) n << dec
- << "dirty=" << hex << (int) n->dirtyState()
<< "flags=" << (int) n->flags() << dec
<< (n->isSubtreeBlocked() ? "*BLOCKED*" : "");
#ifdef QSG_RUNTIME_DESCRIPTION
break;
default:
d << "Node(" << hex << (void *) n << dec
- << "dirty=" << hex << (int) n->dirtyState()
<< "flags=" << (int) n->flags() << dec
<< (n->isSubtreeBlocked() ? "*BLOCKED*" : "");
#ifdef QSG_RUNTIME_DESCRIPTION
inline NodeType type() const { return m_type; }
- void clearDirty() { m_dirtyState = 0; }
+ QT_DEPRECATED void clearDirty() { }
void markDirty(DirtyState bits);
- DirtyState dirtyState() const { return m_dirtyState; }
+ QT_DEPRECATED DirtyState dirtyState() const { return 0; }
virtual bool isSubtreeBlocked() const;
void QSGNodeUpdater::enterTransformNode(QSGTransformNode *t)
{
- if (t->dirtyState() & QSGNode::DirtyMatrix)
- ++m_force_update;
-
#ifdef QSG_UPDATER_DEBUG
qDebug() << "enter transform:" << t << "force=" << m_force_update;
#endif
qDebug() << "leave transform:" << t;
#endif
- if (t->dirtyState() & QSGNode::DirtyMatrix)
- --m_force_update;
-
if (!t->matrix().isIdentity()) {
m_combined_matrix_stack.pop_back();
}
void QSGNodeUpdater::enterOpacityNode(QSGOpacityNode *o)
{
- if (o->dirtyState() & QSGNode::DirtyOpacity)
- ++m_force_update;
-
qreal opacity = m_opacity_stack.last() * o->opacity();
o->setCombinedOpacity(opacity);
m_opacity_stack.add(opacity);
qDebug() << "enter:" << n;
#endif
- if (!n->dirtyState() && !m_force_update)
+ if (!m_force_update)
return;
if (n->isSubtreeBlocked())
return;
- bool forceUpdate = n->dirtyState() & (QSGNode::DirtyNodeAdded | QSGNode::DirtyForceUpdate);
- if (forceUpdate)
- ++m_force_update;
-
switch (n->type()) {
case QSGNode::TransformNodeType: {
QSGTransformNode *t = static_cast<QSGTransformNode *>(n);
visitChildren(n);
break;
}
-
- if (forceUpdate)
- --m_force_update;
-
- n->clearDirty();
}
QT_END_NAMESPACE