Index: src/gpu/GrContext.cpp |
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp |
index 5e46bb49e8efe6b495cfd178d0eeb1bb2d67caf3..ef80b5b290218e4b50d90bf53eb52f9ba36848b3 100755 |
--- a/src/gpu/GrContext.cpp |
+++ b/src/gpu/GrContext.cpp |
@@ -1582,20 +1582,20 @@ void GrContext::setResourceCacheLimits(int maxTextures, size_t maxTextureBytes) |
fResourceCache->setLimits(maxTextures, maxTextureBytes); |
} |
-bool GrContext::addResourceToCache(const GrContentKey& key, GrGpuResource* resource) { |
+bool GrContext::addResourceToCache(const GrUniqueKey& key, GrGpuResource* resource) { |
ASSERT_OWNED_RESOURCE(resource); |
if (!resource || resource->wasDestroyed()) { |
return false; |
} |
- return resource->resourcePriv().setContentKey(key); |
+ return resource->resourcePriv().setUniqueKey(key); |
} |
-bool GrContext::isResourceInCache(const GrContentKey& key) const { |
- return fResourceCache->hasContentKey(key); |
+bool GrContext::isResourceInCache(const GrUniqueKey& key) const { |
+ return fResourceCache->hasUniqueKey(key); |
} |
-GrGpuResource* GrContext::findAndRefCachedResource(const GrContentKey& key) { |
- return fResourceCache->findAndRefContentResource(key); |
+GrGpuResource* GrContext::findAndRefCachedResource(const GrUniqueKey& key) { |
+ return fResourceCache->findAndRefUniqueResource(key); |
} |
////////////////////////////////////////////////////////////////////////////// |