summaryrefslogtreecommitdiffstats
path: root/src/core/resources
diff options
context:
space:
mode:
authorSean Harmer <sean.harmer@kdab.com>2016-02-15 15:00:38 +0000
committerSean Harmer <sean.harmer@kdab.com>2016-02-22 09:03:25 +0000
commit3236bf2bdc943c3c93a1fe9f718030a0be78ddf0 (patch)
treecf03374e071add43114f2cd39b213ba0531bb8b4 /src/core/resources
parentf51b9a41c835dafd7621ee5b547b21ff9fafe43f (diff)
Use integer comparisons when filtering entities by layer
Followup commit will split this phase out to avoid recursion in rest of the render command building. Change-Id: Ifa7cd7f2cea82c34bb827b3f114c442660d2598b Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src/core/resources')
-rw-r--r--src/core/resources/qresourcemanager_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/resources/qresourcemanager_p.h b/src/core/resources/qresourcemanager_p.h
index fd484d5d0..a25fc94ed 100644
--- a/src/core/resources/qresourcemanager_p.h
+++ b/src/core/resources/qresourcemanager_p.h
@@ -477,6 +477,8 @@ public:
int maxResourcesEntries() const { return m_maxResourcesEntries; }
+ int count() const Q_DECL_NOEXCEPT { return m_handleManager.activeEntries(); }
+
protected:
QHandleManager<T, INDEXBITS> m_handleManager;
QHash<C, QHandle<T, INDEXBITS> > m_handleToResourceMapper;