/****************************************************************************
**
-** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
-** All rights reserved.
-** Contact: Nokia Corporation (qt-info@nokia.com)
+** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
+** Contact: http://www.qt-project.org/
**
** This file is part of the QtDeclarative module of the Qt Toolkit.
**
**
**
**
+**
** $QT_END_LICENSE$
**
****************************************************************************/
, m_lastChild(0)
, m_nextSibling(0)
, m_previousSibling(0)
- , m_subtreeGeometryCount(0)
+ , m_subtreeRenderableCount(0)
, m_nodeFlags(OwnedByParent)
, m_dirtyState(0)
{
, m_lastChild(0)
, m_nextSibling(0)
, m_previousSibling(0)
- , m_subtreeGeometryCount(type == GeometryNodeType ? 1 : 0)
+ , m_subtreeRenderableCount(type == GeometryNodeType || type == RenderNodeType ? 1 : 0)
, m_nodeFlags(OwnedByParent)
, m_dirtyState(0)
{
bool QSGNode::isSubtreeBlocked() const
{
- return m_subtreeGeometryCount == 0;
+ return m_subtreeRenderableCount == 0;
}
/*!
DirtyState subtreeBits = DirtyState((bits & DirtyPropagationMask) << 16);
- int geometryCountDiff = 0;
+ int renderableCountDiff = 0;
if (bits & DirtyNodeAdded)
- geometryCountDiff += m_subtreeGeometryCount;
+ renderableCountDiff += m_subtreeRenderableCount;
if (bits & DirtyNodeRemoved)
- geometryCountDiff -= m_subtreeGeometryCount;
+ renderableCountDiff -= m_subtreeRenderableCount;
QSGNode *p = m_parent;
while (p) {
p->m_dirtyState |= subtreeBits;
- p->m_subtreeGeometryCount += geometryCountDiff;
+ p->m_subtreeRenderableCount += renderableCountDiff;
if (p->type() == RootNodeType)
static_cast<QSGRootNode *>(p)->notifyNodeChange(this, bits);
p = p->m_parent;
Sets whether this clip node has a rectangular clip to \a rectHint.
This is an optimization hint which means that the renderer can
- use scissoring instead of stencil, which is significnatly faster.
+ use scissoring instead of stencil, which is significantly faster.
- When this hint is and it is applicable, the clip region will be
+ When this hint is set and it is applicable, the clip region will be
generated from clipRect() rather than geometry().
*/
/*!
- \fn void QSGClipNode::clipRect() const
+ \fn QRectF QSGClipNode::clipRect() const
Returns the clip rect of this node.
*/