diff options
author | Kim Motoyoshi Kalland <kim.kalland@nokia.com> | 2011-11-17 16:36:53 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-12-14 04:49:01 +0100 |
commit | 9db40605bc3c1ddb2715a53724c6fbc4d026e68b (patch) | |
tree | 13caa1b07671dab322ad37cf4d1decca6d795651 /src/quick/items/qquickcanvas.cpp | |
parent | 5676c6c02a5c3869036dbdbebd2338fd994b9473 (diff) |
Made QSGNode flags togglable and added StaticSubtreeGeometry.
The UsePreprocess and ChildrenDoNotOverlap flags could previously
only be set during node initialization. They can now be toggled.
This change also introduces the StaticSubtreeGeometry flag which is
meant to be used to indicate that all the nodes in the sub-tree
have static matrices and vertex data.
Change-Id: I3b182b81f7010aea636f8f654ef22dab19bc6b29
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
Diffstat (limited to 'src/quick/items/qquickcanvas.cpp')
-rw-r--r-- | src/quick/items/qquickcanvas.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/quick/items/qquickcanvas.cpp b/src/quick/items/qquickcanvas.cpp index 432d167864..596db6c03e 100644 --- a/src/quick/items/qquickcanvas.cpp +++ b/src/quick/items/qquickcanvas.cpp @@ -1610,6 +1610,11 @@ void QQuickCanvasPrivate::updateDirtyNode(QQuickItem *item) } } + if ((dirty & QQuickItemPrivate::PerformanceHints) && itemPriv->groupNode) { + itemPriv->groupNode->setFlag(QSGNode::ChildrenDoNotOverlap, itemPriv->childrenDoNotOverlap); + itemPriv->groupNode->setFlag(QSGNode::StaticSubtreeGeometry, itemPriv->staticSubtreeGeometry); + } + #ifndef QT_NO_DEBUG // Check consistency. const QSGNode *nodeChain[] = { |