| Index: src/gpu/GrResourceCache.h
|
| diff --git a/src/gpu/GrResourceCache.h b/src/gpu/GrResourceCache.h
|
| index 4338d4ade725bd74bd686acb65c81e221da247a4..abbffd22ff1fc7a0095151aa0c8a6208d7bcbc83 100644
|
| --- a/src/gpu/GrResourceCache.h
|
| +++ b/src/gpu/GrResourceCache.h
|
| @@ -148,7 +148,7 @@ public:
|
| GrResource* resource() const { return fResource; }
|
| const GrResourceKey& key() const { return fKey; }
|
|
|
| -#if GR_DEBUG
|
| +#if SK_DEBUG
|
| void validate() const;
|
| #else
|
| void validate() const {}
|
| @@ -340,7 +340,7 @@ public:
|
| */
|
| void purgeAsNeeded(int extraCount = 0, size_t extraBytes = 0);
|
|
|
| -#if GR_DEBUG
|
| +#if SK_DEBUG
|
| void validate() const;
|
| #else
|
| void validate() const {}
|
| @@ -367,7 +367,7 @@ private:
|
| typedef SkTInternalLList<GrResourceEntry> EntryList;
|
| EntryList fList;
|
|
|
| -#if GR_DEBUG
|
| +#if SK_DEBUG
|
| // These objects cannot be returned by a search
|
| EntryList fExclusiveList;
|
| #endif
|
| @@ -397,14 +397,14 @@ private:
|
|
|
| void internalPurge(int extraCount, size_t extraBytes);
|
|
|
| -#if GR_DEBUG
|
| +#if SK_DEBUG
|
| static size_t countBytes(const SkTInternalLList<GrResourceEntry>& list);
|
| #endif
|
| };
|
|
|
| ///////////////////////////////////////////////////////////////////////////////
|
|
|
| -#if GR_DEBUG
|
| +#if SK_DEBUG
|
| class GrAutoResourceCacheValidate {
|
| public:
|
| GrAutoResourceCacheValidate(GrResourceCache* cache) : fCache(cache) {
|
|
|