Index: src/gpu/GrResourceCache.cpp |
diff --git a/src/gpu/GrResourceCache.cpp b/src/gpu/GrResourceCache.cpp |
index 005b6c4ccd24177c5630d7bd198a43340262cd81..087e762592144f47f110d39ee1340659e0a2b489 100644 |
--- a/src/gpu/GrResourceCache.cpp |
+++ b/src/gpu/GrResourceCache.cpp |
@@ -147,7 +147,7 @@ void GrResourceCache::insertResource(GrGpuResource* resource) { |
#endif |
} |
if (resource->resourcePriv().getScratchKey().isValid()) { |
- SkASSERT(!resource->cacheAccess().isExternal()); |
+ SkASSERT(!resource->resourcePriv().isExternal()); |
fScratchMap.insert(resource->resourcePriv().getScratchKey(), resource); |
} |
@@ -377,7 +377,7 @@ void GrResourceCache::notifyCntReachedZero(GrGpuResource* resource, uint32_t fla |
if (SkBudgeted::kNo == resource->resourcePriv().isBudgeted()) { |
// Check whether this resource could still be used as a scratch resource. |
- if (!resource->cacheAccess().isExternal() && |
+ if (!resource->resourcePriv().isExternal() && |
resource->resourcePriv().getScratchKey().isValid()) { |
// We won't purge an existing resource to make room for this one. |
if (fBudgetedCount < fMaxCount && |
@@ -662,19 +662,19 @@ void GrResourceCache::validate() const { |
SkASSERT(!resource->getUniqueKey().isValid()); |
++fScratch; |
SkASSERT(fScratchMap->countForKey(resource->resourcePriv().getScratchKey())); |
- SkASSERT(!resource->cacheAccess().isExternal()); |
+ SkASSERT(!resource->resourcePriv().isExternal()); |
} else if (resource->resourcePriv().getScratchKey().isValid()) { |
SkASSERT(SkBudgeted::kNo == resource->resourcePriv().isBudgeted() || |
resource->getUniqueKey().isValid()); |
++fCouldBeScratch; |
SkASSERT(fScratchMap->countForKey(resource->resourcePriv().getScratchKey())); |
- SkASSERT(!resource->cacheAccess().isExternal()); |
+ SkASSERT(!resource->resourcePriv().isExternal()); |
} |
const GrUniqueKey& uniqueKey = resource->getUniqueKey(); |
if (uniqueKey.isValid()) { |
++fContent; |
SkASSERT(fUniqueHash->find(uniqueKey) == resource); |
- SkASSERT(!resource->cacheAccess().isExternal()); |
+ SkASSERT(!resource->resourcePriv().isExternal()); |
SkASSERT(SkBudgeted::kYes == resource->resourcePriv().isBudgeted()); |
} |