Index: src/gpu/GrGpuResourceCacheAccess.h |
diff --git a/src/gpu/GrGpuResourceCacheAccess.h b/src/gpu/GrGpuResourceCacheAccess.h |
index 0aadb89d979e81bec0cc0801139ac40e924caf69..d7c5028b202c5b3f31cd8da09060673dd2e8155f 100644 |
--- a/src/gpu/GrGpuResourceCacheAccess.h |
+++ b/src/gpu/GrGpuResourceCacheAccess.h |
@@ -70,6 +70,12 @@ public: |
bool isBudgeted() const { return GrGpuResource::kCached_LifeCycle == fResource->fLifeCycle; } |
/** |
+ * If the resource is uncached make it cached. Has no effect on resources that are wrapped or |
+ * already cached. |
+ */ |
+ void makeBudgeted() { fResource->makeBudgeted(); } |
+ |
+ /** |
* Called by the cache to delete the resource under normal circumstances. |
*/ |
void release() { |