Index: bench/PicturePlaybackBench.cpp |
diff --git a/bench/PicturePlaybackBench.cpp b/bench/PicturePlaybackBench.cpp |
index 9d233ec3c0f9fbf46dc76f7ee0d00f568105aade..815ef0b777f2cde92a5956ac6e8d0c492a9648da 100644 |
--- a/bench/PicturePlaybackBench.cpp |
+++ b/bench/PicturePlaybackBench.cpp |
@@ -35,7 +35,7 @@ protected: |
return fName.c_str(); |
} |
- virtual void onDraw(SkCanvas* canvas) { |
+ virtual void onDraw(const int loops, SkCanvas* canvas) { |
SkPicture picture; |
@@ -43,9 +43,9 @@ protected: |
recordCanvas(pCanvas); |
picture.endRecording(); |
- const SkPoint translateDelta = getTranslateDelta(this->getLoops()); |
+ const SkPoint translateDelta = getTranslateDelta(loops); |
- for (int i = 0; i < this->getLoops(); i++) { |
+ for (int i = 0; i < loops; i++) { |
picture.draw(canvas); |
canvas->translate(translateDelta.fX, translateDelta.fY); |
} |