From 9db40605bc3c1ddb2715a53724c6fbc4d026e68b Mon Sep 17 00:00:00 2001 From: Kim Motoyoshi Kalland Date: Thu, 17 Nov 2011 16:36:53 +0100 Subject: 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 Reviewed-by: Gunnar Sletta --- src/quick/items/qquickitem_p.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/quick/items/qquickitem_p.h') diff --git a/src/quick/items/qquickitem_p.h b/src/quick/items/qquickitem_p.h index e9c9498c44..6ed4a694a7 100644 --- a/src/quick/items/qquickitem_p.h +++ b/src/quick/items/qquickitem_p.h @@ -279,6 +279,7 @@ public: bool inheritMirrorFromParent:1; bool inheritMirrorFromItem:1; bool childrenDoNotOverlap:1; + bool staticSubtreeGeometry:1; QQuickCanvas *canvas; QSGContext *sceneGraphContext() const { Q_ASSERT(canvas); return static_cast(QObjectPrivate::get(canvas))->context; } @@ -396,6 +397,7 @@ public: EffectReference = 0x00008000, Visible = 0x00010000, HideReference = 0x00020000, + PerformanceHints = 0x00040000, // When you add an attribute here, don't forget to update // dirtyToString() @@ -738,6 +740,7 @@ QSGNode *QQuickItemPrivate::childContainerNode() else itemNode()->appendChildNode(groupNode); groupNode->setFlag(QSGNode::ChildrenDoNotOverlap, childrenDoNotOverlap); + groupNode->setFlag(QSGNode::StaticSubtreeGeometry, staticSubtreeGeometry); #ifdef QML_RUNTIME_TESTING groupNode->description = QLatin1String("group"); #endif -- cgit v1.2.3