Index: src/gpu/GrResourceCache.cpp |
diff --git a/src/gpu/GrResourceCache.cpp b/src/gpu/GrResourceCache.cpp |
index 529c3a5d1db8979d1d16d151f30d18aa9d2d76ce..ac10ebc6413d60f339b5fd0bf7a87f3cbdbe7865 100644 |
--- a/src/gpu/GrResourceCache.cpp |
+++ b/src/gpu/GrResourceCache.cpp |
@@ -373,7 +373,7 @@ void GrResourceCache::purgeInvalidated() { |
} |
void GrResourceCache::deleteResource(GrResourceCacheEntry* entry) { |
- SkASSERT(1 == entry->fResource->getRefCnt()); |
+ SkASSERT(entry->fResource->unique()); |
// remove from our cache |
fCache.remove(entry->key(), entry); |