Index: bench/GameBench.cpp |
diff --git a/bench/GameBench.cpp b/bench/GameBench.cpp |
index 3d371bee2b56fa99f8b0002c5f80a7a3a36e4f78..839440b612e0dd4ffaa6719be75f866c651caddf 100644 |
--- a/bench/GameBench.cpp |
+++ b/bench/GameBench.cpp |
@@ -86,7 +86,7 @@ protected: |
} |
} |
- virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE { |
+ virtual void onDraw(const int loops, SkCanvas* canvas) SK_OVERRIDE { |
SkRandom scaleRand; |
SkRandom transRand; |
SkRandom rotRand; |
@@ -143,7 +143,7 @@ protected: |
SkShader::kClamp_TileMode, |
SkShader::kClamp_TileMode))->unref(); |
- for (int i = 0; i < this->getLoops(); ++i, ++fNumSaved) { |
+ for (int i = 0; i < loops; ++i, ++fNumSaved) { |
if (0 == i % kNumBeforeClear) { |
if (kPartial_Clear == fClear) { |
for (int j = 0; j < fNumSaved; ++j) { |