diff options
Diffstat (limited to 'cc/resources/resource_pool.h')
-rw-r--r-- | cc/resources/resource_pool.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cc/resources/resource_pool.h b/cc/resources/resource_pool.h index 2304a50..309bf33 100644 --- a/cc/resources/resource_pool.h +++ b/cc/resources/resource_pool.h @@ -44,6 +44,9 @@ class CC_EXPORT ResourcePool { size_t max_unused_memory_usage_bytes, size_t num_resources_limit); + size_t total_memory_usage_bytes() const { + return memory_usage_bytes_; + } size_t acquired_memory_usage_bytes() const { return memory_usage_bytes_ - unused_memory_usage_bytes_; } |