Index: bench/ScalarBench.cpp |
diff --git a/bench/ScalarBench.cpp b/bench/ScalarBench.cpp |
index a1ea73749872ec6ea738c2a4283e506fea85f272..54ee0fcd195967a73bd532b2bf9b08872fc9b76d 100644 |
--- a/bench/ScalarBench.cpp |
+++ b/bench/ScalarBench.cpp |
@@ -31,8 +31,8 @@ protected: |
return fName.c_str(); |
} |
- virtual void onDraw(SkCanvas* canvas) { |
- for (int i = 0; i < this->getLoops(); i++) { |
+ virtual void onDraw(const int loops, SkCanvas* canvas) { |
+ for (int i = 0; i < loops; i++) { |
this->performTest(); |
} |
} |
@@ -157,9 +157,9 @@ protected: |
return "rect_bounds"; |
} |
- virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE { |
+ virtual void onDraw(const int loops, SkCanvas* canvas) SK_OVERRIDE { |
SkRect r; |
- for (int i = 0; i < this->getLoops(); ++i) { |
+ for (int i = 0; i < loops; ++i) { |
r.set(fPts, PTS); |
} |
} |