summaryrefslogtreecommitdiffstats
path: root/cc/resources/resource_pool.h
diff options
context:
space:
mode:
Diffstat (limited to 'cc/resources/resource_pool.h')
-rw-r--r--cc/resources/resource_pool.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/cc/resources/resource_pool.h b/cc/resources/resource_pool.h
index 651f1d4..0f3b2b8 100644
--- a/cc/resources/resource_pool.h
+++ b/cc/resources/resource_pool.h
@@ -46,6 +46,10 @@ class CC_EXPORT ResourcePool {
size_t max_memory_usage_bytes,
size_t max_unused_memory_usage_bytes);
+ size_t acquired_memory_usage_bytes() const {
+ return memory_usage_bytes_ - unused_memory_usage_bytes_;
+ }
+
protected:
explicit ResourcePool(ResourceProvider* resource_provider);