Index: src/gpu/GrResourceCache2.cpp |
diff --git a/src/gpu/GrResourceCache2.cpp b/src/gpu/GrResourceCache2.cpp |
index 1db96ec1cce8352ee468d95372b76b3df287576d..e23f9688acf881691a4861641e28b68d3dff847a 100644 |
--- a/src/gpu/GrResourceCache2.cpp |
+++ b/src/gpu/GrResourceCache2.cpp |
@@ -261,10 +261,9 @@ void GrResourceCache2::notifyPurgable(GrGpuResource* resource) { |
bool noKey = !resource->cacheAccess().isScratch() && |
(NULL == resource->cacheAccess().getContentKey()); |
- // Wrapped resources should never have a key. |
- SkASSERT(noKey || !resource->cacheAccess().isWrapped()); |
+ // Only cached resources should ever have a key. |
+ SkASSERT(noKey || resource->cacheAccess().isBudgeted()); |
- // And purge if the resource is wrapped |
if (overBudget || noKey) { |
SkDEBUGCODE(int beforeCount = fCount;) |
resource->cacheAccess().release(); |
@@ -316,7 +315,6 @@ void GrResourceCache2::didChangeBudgetStatus(GrGpuResource* resource) { |
this->validate(); |
} |
- |
void GrResourceCache2::internalPurgeAsNeeded() { |
SkASSERT(!fPurging); |
SkASSERT(!fNewlyPurgableResourceWhilePurging); |