| Index: tests/ResourceCacheTest.cpp
|
| diff --git a/tests/ResourceCacheTest.cpp b/tests/ResourceCacheTest.cpp
|
| index 08d36780733afa4ee9ce2f0771bcd2878a9c6b98..be2366d62bb9f30422395d634799ac2ff7c7912f 100644
|
| --- a/tests/ResourceCacheTest.cpp
|
| +++ b/tests/ResourceCacheTest.cpp
|
| @@ -230,6 +230,8 @@ static void test_wrapped_resources(skiatest::Reporter* reporter, GrContext* cont
|
| class TestResource : public GrGpuResource {
|
| enum ScratchConstructor { kScratchConstructor };
|
| public:
|
| + GrRenderTarget* arrgh() override { return NULL; }
|
| +
|
| static const size_t kDefaultSize = 100;
|
|
|
| /** Property that distinctly categorizes the resource.
|
| @@ -237,7 +239,7 @@ public:
|
| enum SimulatedProperty { kA_SimulatedProperty, kB_SimulatedProperty };
|
|
|
| TestResource(GrGpu* gpu, size_t size, GrGpuResource::LifeCycle lifeCycle)
|
| - : INHERITED(gpu, lifeCycle)
|
| + : INHERITED(gpu, lifeCycle, GrGpuResource::kOther)
|
| , fToDelete(nullptr)
|
| , fSize(size)
|
| , fProperty(kA_SimulatedProperty) {
|
| @@ -246,7 +248,7 @@ public:
|
| }
|
|
|
| TestResource(GrGpu* gpu, GrGpuResource::LifeCycle lifeCycle)
|
| - : INHERITED(gpu, lifeCycle)
|
| + : INHERITED(gpu, lifeCycle, GrGpuResource::kOther)
|
| , fToDelete(nullptr)
|
| , fSize(kDefaultSize)
|
| , fProperty(kA_SimulatedProperty) {
|
| @@ -255,7 +257,7 @@ public:
|
| }
|
|
|
| TestResource(GrGpu* gpu)
|
| - : INHERITED(gpu, kCached_LifeCycle)
|
| + : INHERITED(gpu, kCached_LifeCycle, GrGpuResource::kOther)
|
| , fToDelete(nullptr)
|
| , fSize(kDefaultSize)
|
| , fProperty(kA_SimulatedProperty) {
|
| @@ -299,7 +301,7 @@ private:
|
| static const int kScratchKeyFieldCnt = 6;
|
|
|
| TestResource(GrGpu* gpu, SimulatedProperty property, bool cached, ScratchConstructor)
|
| - : INHERITED(gpu, cached ? kCached_LifeCycle : kUncached_LifeCycle)
|
| + : INHERITED(gpu, cached ? kCached_LifeCycle : kUncached_LifeCycle, GrGpuResource::kOther)
|
| , fToDelete(nullptr)
|
| , fSize(kDefaultSize)
|
| , fProperty(property) {
|
|
|