Chromium Code Reviews| 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() { |
|
robertphillips
2015/01/15 20:48:17
Should we add an assert that we're not trying to m
bsalomon
2015/01/15 21:14:05
Seems ok to just ignore the request to me...
|
| + 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; |