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

Unified Diff: src/gpu/GrResourceCache.cpp

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/GrResourceCache.h ('k') | src/gpu/GrTHashCache.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrResourceCache.cpp
diff --git a/src/gpu/GrResourceCache.cpp b/src/gpu/GrResourceCache.cpp
index 480e0966d05d5fc2b04ec26639ca53a6f0576696..210cbf8d78724ea66e11e39168043e8d62f94c48 100644
--- a/src/gpu/GrResourceCache.cpp
+++ b/src/gpu/GrResourceCache.cpp
@@ -37,7 +37,7 @@ GrResourceEntry::~GrResourceEntry() {
fResource->unref();
}
-#if GR_DEBUG
+#ifdef SK_DEBUG
void GrResourceEntry::validate() const {
SkASSERT(fResource);
SkASSERT(fResource->getCacheEntry() == this);
@@ -227,7 +227,7 @@ void GrResourceCache::makeExclusive(GrResourceEntry* entry) {
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::removeInvalidResource(GrResourceEntry* entry) {
void GrResourceCache::makeNonExclusive(GrResourceEntry* entry) {
GrAutoResourceCacheValidate atcv(this);
-#if GR_DEBUG
+#ifdef SK_DEBUG
fExclusiveList.remove(entry);
#endif
@@ -360,7 +360,7 @@ void GrResourceCache::purgeAllUnlocked() {
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 @@ void GrResourceCache::purgeAllUnlocked() {
///////////////////////////////////////////////////////////////////////////////
-#if GR_DEBUG
+#ifdef SK_DEBUG
size_t GrResourceCache::countBytes(const EntryList& list) {
size_t bytes = 0;
@@ -441,7 +441,7 @@ void GrResourceCache::validate() const {
SkASSERT(fExclusiveList.countEntries() == fClientDetachedCount);
}
-#endif // GR_DEBUG
+#endif // SK_DEBUG
#if GR_CACHE_STATS
« no previous file with comments | « src/gpu/GrResourceCache.h ('k') | src/gpu/GrTHashCache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698