Index: src/gpu/GrGpuResource.cpp |
diff --git a/src/gpu/GrGpuResource.cpp b/src/gpu/GrGpuResource.cpp |
index 87c7349246aca003fb8cc86985e74d2a304e325d..124f99a054686f6452d21e3f70d07f60a7a9b2d4 100644 |
--- a/src/gpu/GrGpuResource.cpp |
+++ b/src/gpu/GrGpuResource.cpp |
@@ -99,12 +99,6 @@ bool GrGpuResource::setContentKey(const GrResourceKey& contentKey) { |
return true; |
} |
-void GrGpuResource::setCacheEntry(GrResourceCacheEntry* cacheEntry) { |
- // GrResourceCache never changes the cacheEntry once one has been added. |
- SkASSERT(NULL == cacheEntry || NULL == fCacheEntry); |
- fCacheEntry = cacheEntry; |
-} |
- |
void GrGpuResource::notifyIsPurgable() const { |
if (fCacheEntry && !this->wasDestroyed()) { |
get_resource_cache(fGpu)->notifyPurgable(this); |
@@ -118,18 +112,6 @@ void GrGpuResource::setScratchKey(const GrResourceKey& scratchKey) { |
fScratchKey = scratchKey; |
} |
-const GrResourceKey* GrGpuResource::getContentKey() const { |
- if (fContentKeySet) { |
- return &fContentKey; |
- } |
- return NULL; |
-} |
- |
-bool GrGpuResource::isScratch() const { |
- SkASSERT(fScratchKey.isScratch()); |
- return NULL == this->getContentKey() && !fScratchKey.isNullScratch(); |
-} |
- |
uint32_t GrGpuResource::CreateUniqueID() { |
static int32_t gUniqueID = SK_InvalidUniqueID; |
uint32_t id; |