Replace uses of GR_DEBUG by SK_DEBUG.
BUG=None
R=bsalomon@google.com, robertphillips@google.com
Author: tfarina@chromium.org
Review URL: https://chromiumcodereview.appspot.com/23137022
git-svn-id: http://skia.googlecode.com/svn/trunk@10978 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/gpu/GrResourceCache.cpp b/src/gpu/GrResourceCache.cpp
index 480e096..210cbf8 100644
--- a/src/gpu/GrResourceCache.cpp
+++ b/src/gpu/GrResourceCache.cpp
@@ -37,7 +37,7 @@
fResource->unref();
}
-#if GR_DEBUG
+#ifdef SK_DEBUG
void GrResourceEntry::validate() const {
SkASSERT(fResource);
SkASSERT(fResource->getCacheEntry() == this);
@@ -227,7 +227,7 @@
this->internalDetach(entry, kIgnore_BudgetBehavior);
fCache.remove(entry->key(), entry);
-#if GR_DEBUG
+#ifdef SK_DEBUG
fExclusiveList.addToHead(entry);
#endif
}
@@ -248,7 +248,7 @@
void GrResourceCache::makeNonExclusive(GrResourceEntry* entry) {
GrAutoResourceCacheValidate atcv(this);
-#if GR_DEBUG
+#ifdef SK_DEBUG
fExclusiveList.remove(entry);
#endif
@@ -360,7 +360,7 @@
fMaxCount = 0;
this->purgeAsNeeded();
-#if GR_DEBUG
+#ifdef SK_DEBUG
SkASSERT(fExclusiveList.countEntries() == fClientDetachedCount);
SkASSERT(countBytes(fExclusiveList) == fClientDetachedBytes);
if (!fCache.count()) {
@@ -379,7 +379,7 @@
///////////////////////////////////////////////////////////////////////////////
-#if GR_DEBUG
+#ifdef SK_DEBUG
size_t GrResourceCache::countBytes(const EntryList& list) {
size_t bytes = 0;
@@ -441,7 +441,7 @@
SkASSERT(fExclusiveList.countEntries() == fClientDetachedCount);
}
-#endif // GR_DEBUG
+#endif // SK_DEBUG
#if GR_CACHE_STATS