Index: src/gpu/GrResourceCache.cpp |
diff --git a/src/gpu/GrResourceCache.cpp b/src/gpu/GrResourceCache.cpp |
index 13568e4965d57a02486e60100836132705757f47..e3a17f05c5fa6a88ce05a3ddfeb070ec88f1d556 100644 |
--- a/src/gpu/GrResourceCache.cpp |
+++ b/src/gpu/GrResourceCache.cpp |
@@ -9,13 +9,13 @@ |
#include "GrResourceCache.h" |
-#include "GrGpuObject.h" |
+#include "GrGpuResource.h" |
DECLARE_SKMESSAGEBUS_MESSAGE(GrResourceInvalidatedMessage); |
/////////////////////////////////////////////////////////////////////////////// |
-void GrGpuObject::didChangeGpuMemorySize() const { |
+void GrGpuResource::didChangeGpuMemorySize() const { |
if (this->isInCache()) { |
fCacheEntry->didChangeResourceSize(); |
} |
@@ -38,7 +38,7 @@ GrResourceKey::ResourceType GrResourceKey::GenerateResourceType() { |
GrResourceCacheEntry::GrResourceCacheEntry(GrResourceCache* resourceCache, |
const GrResourceKey& key, |
- GrGpuObject* resource) |
+ GrGpuResource* resource) |
: fResourceCache(resourceCache), |
fKey(key), |
fResource(resource), |
@@ -197,7 +197,7 @@ public: |
} |
}; |
-GrGpuObject* GrResourceCache::find(const GrResourceKey& key, uint32_t ownershipFlags) { |
+GrGpuResource* GrResourceCache::find(const GrResourceKey& key, uint32_t ownershipFlags) { |
GrAutoResourceCacheValidate atcv(this); |
GrResourceCacheEntry* entry = NULL; |
@@ -226,7 +226,7 @@ GrGpuObject* GrResourceCache::find(const GrResourceKey& key, uint32_t ownershipF |
} |
void GrResourceCache::addResource(const GrResourceKey& key, |
- GrGpuObject* resource, |
+ GrGpuResource* resource, |
uint32_t ownershipFlags) { |
SkASSERT(NULL == resource->getCacheEntry()); |
// we don't expect to create new resources during a purge. In theory |