Index: src/gpu/GrGpuResourceCacheAccess.h |
diff --git a/src/gpu/GrGpuResourceCacheAccess.h b/src/gpu/GrGpuResourceCacheAccess.h |
index df0ca34bcad76a2c2667a057b6314a57679a34c9..4f38fc600212a5d483751f3b7374497cffc17b68 100644 |
--- a/src/gpu/GrGpuResourceCacheAccess.h |
+++ b/src/gpu/GrGpuResourceCacheAccess.h |
@@ -55,6 +55,12 @@ private: |
} |
} |
+ /** Called by the cache to assign a new unique key. */ |
+ void setUniqueKey(const GrUniqueKey& key) { fResource->fUniqueKey = key; } |
+ |
+ /** Called by the cache to make the unique key invalid. */ |
+ void removeUniqueKey() { fResource->fUniqueKey.reset(); } |
+ |
uint32_t timestamp() const { return fResource->fTimestamp; } |
void setTimestamp(uint32_t ts) { fResource->fTimestamp = ts; } |