diff options
Diffstat (limited to 'src/gpu/GrResourceCache.h')
-rw-r--r-- | src/gpu/GrResourceCache.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gpu/GrResourceCache.h b/src/gpu/GrResourceCache.h index 41c6b516b9..b5953032f6 100644 --- a/src/gpu/GrResourceCache.h +++ b/src/gpu/GrResourceCache.h @@ -213,6 +213,11 @@ public: */ size_t getCachedResourceBytes() const { return fEntryBytes; } + /** + * Returns the number of cached resources. + */ + int getCachedResourceCount() const { return fEntryCount; } + // For a found or added resource to be completely exclusive to the caller // both the kNoOtherOwners and kHide flags need to be specified enum OwnershipFlags { |