Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(245)

Unified Diff: src/gpu/GrResourceCache.h

Issue 23137022: Replace uses of GR_DEBUG by SK_DEBUG. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: not GR_RELEASE Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/GrRedBlackTree.h ('k') | src/gpu/GrResourceCache.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrResourceCache.h
diff --git a/src/gpu/GrResourceCache.h b/src/gpu/GrResourceCache.h
index 4338d4ade725bd74bd686acb65c81e221da247a4..5df17defa37c865607f10e40ce12953219e367fb 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
+#ifdef 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
+#ifdef SK_DEBUG
void validate() const;
#else
void validate() const {}
@@ -367,7 +367,7 @@ private:
typedef SkTInternalLList<GrResourceEntry> EntryList;
EntryList fList;
-#if GR_DEBUG
+#ifdef 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
+#ifdef SK_DEBUG
static size_t countBytes(const SkTInternalLList<GrResourceEntry>& list);
#endif
};
///////////////////////////////////////////////////////////////////////////////
-#if GR_DEBUG
+#ifdef SK_DEBUG
class GrAutoResourceCacheValidate {
public:
GrAutoResourceCacheValidate(GrResourceCache* cache) : fCache(cache) {
« no previous file with comments | « src/gpu/GrRedBlackTree.h ('k') | src/gpu/GrResourceCache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698