Index: src/gpu/GrGpuResource.cpp |
diff --git a/src/gpu/GrGpuResource.cpp b/src/gpu/GrGpuResource.cpp |
index a2df7e13e8cd388922b840a6b8fbadf34e5e3509..2f267a41970609990bb2fae4f5ce07a83ed01715 100644 |
--- a/src/gpu/GrGpuResource.cpp |
+++ b/src/gpu/GrGpuResource.cpp |
@@ -6,7 +6,6 @@ |
* found in the LICENSE file. |
*/ |
- |
#include "GrGpuResource.h" |
#include "GrResourceCache2.h" |
#include "GrGpu.h" |
@@ -134,6 +133,13 @@ void GrGpuResource::removeScratchKey() { |
} |
} |
+void GrGpuResource::makeBudgeted() { |
+ if (GrGpuResource::kUncached_LifeCycle == fLifeCycle) { |
+ fLifeCycle = kCached_LifeCycle; |
+ get_resource_cache2(fGpu)->resourceAccess().didChangeBudgetStatus(this); |
+ } |
+} |
+ |
uint32_t GrGpuResource::CreateUniqueID() { |
static int32_t gUniqueID = SK_InvalidUniqueID; |
uint32_t id; |