Index: src/core/SkTObjectPool.h |
diff --git a/src/core/SkTObjectPool.h b/src/core/SkTObjectPool.h |
index 01e8e8e53b24495fb0acfb493c531df0028e05d4..f2a471f634aa4c21f85e0bff168fe40e72a51b3b 100644 |
--- a/src/core/SkTObjectPool.h |
+++ b/src/core/SkTObjectPool.h |
@@ -74,6 +74,11 @@ public: |
*/ |
int blocks() const { return fBlocks.getCount(); } |
+ /** |
+ * Returns the number of items allocated by the pool in total. |
+ */ |
+ int allocated() const { return fBlocks.getCount() * numItemsPerBlock; } |
+ |
private: |
/** |
* The type for a new block of entries for the list. |