Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(409)

Unified Diff: tests/ResourceCacheTest.cpp

Issue 1225923010: Refugee from Dead Machine 4: MDB Monster Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Last update from dead machine Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/ReadWriteAlphaTest.cpp ('k') | tests/SRGBReadWritePixelsTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « tests/ReadWriteAlphaTest.cpp ('k') | tests/SRGBReadWritePixelsTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698