Index: bench/GrMemoryPoolBench.cpp |
diff --git a/bench/GrMemoryPoolBench.cpp b/bench/GrMemoryPoolBench.cpp |
index 0adf92abaa6f2f49ade2f7a6f5b056401a56c763..b692aae432ddddceb452f341daa3f2ba77bb87c5 100644 |
--- a/bench/GrMemoryPoolBench.cpp |
+++ b/bench/GrMemoryPoolBench.cpp |
@@ -32,9 +32,10 @@ GrMemoryPool A::gPool(10 * (1 << 10), 10 * (1 << 10)); |
*/ |
class GrMemoryPoolBenchStack : public SkBenchmark { |
public: |
- GrMemoryPoolBenchStack() { |
- fIsRendering = false; |
+ virtual bool isSuitableFor(Backend backend) SK_OVERRIDE { |
+ return backend == kNonRendering_Backend; |
} |
+ |
protected: |
virtual const char* onGetName() { |
return "grmemorypool_stack"; |
@@ -83,9 +84,10 @@ private: |
*/ |
class GrMemoryPoolBenchRandom : public SkBenchmark { |
public: |
- GrMemoryPoolBenchRandom() { |
- fIsRendering = false; |
+ virtual bool isSuitableFor(Backend backend) SK_OVERRIDE { |
+ return backend == kNonRendering_Backend; |
} |
+ |
protected: |
virtual const char* onGetName() { |
return "grmemorypool_random"; |
@@ -120,9 +122,10 @@ class GrMemoryPoolBenchQueue : public SkBenchmark { |
M = 4 * (1 << 10), |
}; |
public: |
- GrMemoryPoolBenchQueue() { |
- fIsRendering = false; |
+ virtual bool isSuitableFor(Backend backend) SK_OVERRIDE { |
+ return backend == kNonRendering_Backend; |
} |
+ |
protected: |
virtual const char* onGetName() { |
return "grmemorypool_queue"; |