Index: bench/MemoryBench.cpp |
diff --git a/bench/MemoryBench.cpp b/bench/MemoryBench.cpp |
index 418e149f80bdd801cdc7a51f2c0b081e6113d6f9..e3ac2c33b3b3d01e68327d91461b56b15b2e7364 100644 |
--- a/bench/MemoryBench.cpp |
+++ b/bench/MemoryBench.cpp |
@@ -19,7 +19,10 @@ public: |
ChunkAllocBench(size_t minSize) { |
fMinSize = minSize; |
fName.printf("chunkalloc_" SK_SIZE_T_SPECIFIER, minSize); |
- fIsRendering = false; |
+ } |
+ |
+ virtual bool isSuitableFor(Backend backend) SK_OVERRIDE { |
+ return backend == kNonRendering_Backend; |
} |
protected: |
@@ -85,7 +88,10 @@ public: |
fName.appendf("_w"); |
} |
fName.appendf("_"SK_SIZE_T_SPECIFIER, num); |
- fIsRendering = false; |
+ } |
+ |
+ virtual bool isSuitableFor(Backend backend) SK_OVERRIDE { |
+ return backend == kNonRendering_Backend; |
} |
protected: |