Index: src/gpu/GrContext.cpp |
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp |
index d3edd21e5f40ea22de774c72c06b9bb8d5c9686f..c17144644018add3af3a9f4146dee8263b59db10 100755 |
--- a/src/gpu/GrContext.cpp |
+++ b/src/gpu/GrContext.cpp |
@@ -257,7 +257,7 @@ GrTexture* GrContext::findAndRefTexture(const GrTextureDesc& desc, |
const GrCacheID& cacheID, |
const GrTextureParams* params) { |
GrResourceKey resourceKey = GrTextureImpl::ComputeKey(fGpu, params, desc, cacheID); |
- GrGpuObject* resource = fResourceCache->find(resourceKey); |
+ GrGpuResource* resource = fResourceCache->find(resourceKey); |
SkSafeRef(resource); |
return static_cast<GrTexture*>(resource); |
} |
@@ -283,7 +283,7 @@ GrStencilBuffer* GrContext::findStencilBuffer(int width, int height, |
GrResourceKey resourceKey = GrStencilBuffer::ComputeKey(width, |
height, |
sampleCnt); |
- GrGpuObject* resource = fResourceCache->find(resourceKey); |
+ GrGpuResource* resource = fResourceCache->find(resourceKey); |
return static_cast<GrStencilBuffer*>(resource); |
} |
@@ -471,7 +471,7 @@ GrTexture* GrContext::lockAndRefScratchTexture(const GrTextureDesc& inDesc, Scra |
desc.fHeight = SkTMax(MIN_SIZE, GrNextPow2(desc.fHeight)); |
} |
- GrGpuObject* resource = NULL; |
+ GrGpuResource* resource = NULL; |
int origWidth = desc.fWidth; |
int origHeight = desc.fHeight; |
@@ -1903,13 +1903,13 @@ GrPath* GrContext::createPath(const SkPath& inPath, const SkStrokeRec& stroke) { |
return path; |
} |
-void GrContext::addResourceToCache(const GrResourceKey& resourceKey, GrGpuObject* resource) { |
+void GrContext::addResourceToCache(const GrResourceKey& resourceKey, GrGpuResource* resource) { |
fResourceCache->purgeAsNeeded(1, resource->gpuMemorySize()); |
fResourceCache->addResource(resourceKey, resource); |
} |
-GrGpuObject* GrContext::findAndRefCachedResource(const GrResourceKey& resourceKey) { |
- GrGpuObject* resource = fResourceCache->find(resourceKey); |
+GrGpuResource* GrContext::findAndRefCachedResource(const GrResourceKey& resourceKey) { |
+ GrGpuResource* resource = fResourceCache->find(resourceKey); |
SkSafeRef(resource); |
return resource; |
} |