Index: src/gpu/GrGpuResourceCacheAccess.h |
diff --git a/src/gpu/GrGpuResourceCacheAccess.h b/src/gpu/GrGpuResourceCacheAccess.h |
index c55bb0777494baa3a9508107baf55d79ee86c23d..e220e5f263c185e2ff3c0139e77d71029711da88 100644 |
--- a/src/gpu/GrGpuResourceCacheAccess.h |
+++ b/src/gpu/GrGpuResourceCacheAccess.h |
@@ -50,6 +50,12 @@ public: |
const GrResourceKey& getScratchKey() const { return fResource->fScratchKey; } |
/** |
+ * If the resource has a scratch key, the key will be removed. Since scratch keys are installed |
+ * at resource creation time, this means the resource will never again be used as scratch. |
+ */ |
+ void removeScratchKey() const { fResource->removeScratchKey(); } |
+ |
+ /** |
* If the resource is currently cached by a content key, the key is returned, otherwise NULL. |
*/ |
const GrResourceKey* getContentKey() const { |