diff options
author | Robin Burchell <robin.burchell@viroteck.net> | 2015-06-02 20:27:21 +0300 |
---|---|---|
committer | Robin Burchell <robin.burchell@viroteck.net> | 2015-06-06 11:33:24 +0000 |
commit | 339e2ac49eb9a3eaf1bd1aa32b996b1688ccb3cf (patch) | |
tree | c99e1bd3cad95dee0b6ae01cfdb27a3760c18cbf /src/quick/items/qquickwindow_p.h | |
parent | 0a0756d39907ab106d721dc71969eab923c9681c (diff) |
QQuickWindow: Move itemsToPolish from a QSet to QVector.
QQuickItem already keeps track of whether the polish flag has been set, so the
set provided no functional advantage here, and would have served to pessimize
processing of polish if anything - now adding items to polish and processing
them becomes constant-time operations.
The only operation that is pessimised is removing polish off an existing item:
but this should not be too horrid, unless the number of items to polish stacks
up tremendously.
Change-Id: I5d26dc899570a1e0186018850c21659e1f60a6b3
Reviewed-by: Gunnar Sletta <gunnar@sletta.org>
Diffstat (limited to 'src/quick/items/qquickwindow_p.h')
-rw-r--r-- | src/quick/items/qquickwindow_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/items/qquickwindow_p.h b/src/quick/items/qquickwindow_p.h index 605a36fb1d..0d33d2398a 100644 --- a/src/quick/items/qquickwindow_p.h +++ b/src/quick/items/qquickwindow_p.h @@ -200,7 +200,7 @@ public: QQuickItem *dirtyItemList; QList<QSGNode *> cleanupNodeList; - QSet<QQuickItem *> itemsToPolish; + QVector<QQuickItem *> itemsToPolish; void updateDirtyNodes(); void cleanupNodes(); |