| Index: src/gpu/GrResourceCache.h
|
| diff --git a/src/gpu/GrResourceCache.h b/src/gpu/GrResourceCache.h
|
| index 41c6b516b97a476dd4c5b43281eae1d392d605f4..b5953032f617b5e036fede5bffd1828b16e9dba6 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 {
|
|
|