diff options
Diffstat (limited to 'src/gpu/GrResourceCache.h')
-rw-r--r-- | src/gpu/GrResourceCache.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gpu/GrResourceCache.h b/src/gpu/GrResourceCache.h index 00e62ea923..bfa528d305 100644 --- a/src/gpu/GrResourceCache.h +++ b/src/gpu/GrResourceCache.h @@ -11,6 +11,7 @@ #ifndef GrResourceCache_DEFINED #define GrResourceCache_DEFINED +#include "GrConfig.h" #include "GrTypes.h" #include "GrTHashCache.h" #include "SkTDLinkedList.h" @@ -297,11 +298,14 @@ public: #if GR_DEBUG void validate() const; - void printStats() const; #else void validate() const {} #endif +#if GR_CACHE_STATS + void printStats() const; +#endif + private: void internalDetach(GrResourceEntry*, bool); void attachToHead(GrResourceEntry*, bool); @@ -326,7 +330,7 @@ private: size_t fMaxBytes; // our current stats, related to our budget -#if GR_DEBUG +#if GR_CACHE_STATS int fHighWaterEntryCount; int fHighWaterUnlockedEntryCount; size_t fHighWaterEntryBytes; |