Index: bench/PathBench.cpp |
diff --git a/bench/PathBench.cpp b/bench/PathBench.cpp |
index 11151d9d45329e4bdfcbb40cbb49997ec85dbf7e..b3d4ab1200fbc9ad103f3af7b59c2aff591ce8ce 100644 |
--- a/bench/PathBench.cpp |
+++ b/bench/PathBench.cpp |
@@ -216,8 +216,8 @@ private: |
class RandomPathBench : public SkBenchmark { |
public: |
- RandomPathBench() { |
- fIsRendering = false; |
+ virtual bool isSuitableFor(Backend backend) SK_OVERRIDE { |
+ return backend == kNonRendering_Backend; |
} |
protected: |
@@ -761,7 +761,6 @@ public: |
}; |
ConservativelyContainsBench(Type type) { |
- fIsRendering = false; |
fParity = false; |
fName = "conservatively_contains_"; |
switch (type) { |
@@ -780,6 +779,10 @@ public: |
} |
} |
+ virtual bool isSuitableFor(Backend backend) SK_OVERRIDE { |
+ return backend == kNonRendering_Backend; |
+ } |
+ |
private: |
virtual const char* onGetName() SK_OVERRIDE { |
return fName.c_str(); |
@@ -903,7 +906,10 @@ public: |
for (int i = 0; i < CONICS; ++i) { |
rand_conic(&fConics[i], rand); |
} |
- fIsRendering = false; |
+ } |
+ |
+ virtual bool isSuitableFor(Backend backend) SK_OVERRIDE { |
+ return backend == kNonRendering_Backend; |
} |
protected: |