Index: bench/WriterBench.cpp |
diff --git a/bench/WriterBench.cpp b/bench/WriterBench.cpp |
index f9a0ac89b48c92cd525d40cdaaee7cc48def2d25..46b26b1efae3dd68992343f0d183d72762b499b7 100644 |
--- a/bench/WriterBench.cpp |
+++ b/bench/WriterBench.cpp |
@@ -21,11 +21,11 @@ protected: |
return "writer"; |
} |
- virtual void onDraw(SkCanvas*) SK_OVERRIDE { |
+ virtual void onDraw(const int loops, SkCanvas*) SK_OVERRIDE { |
static const char gStr[] = "abcdefghimjklmnopqrstuvwxyz"; |
static const size_t gLen = strlen(gStr); |
SkWriter32 writer(256 * 4); |
- for (int i = 0; i < this->getLoops(); i++) { |
+ for (int i = 0; i < loops; i++) { |
for (size_t j = 0; j <= gLen; j++) { |
writer.writeString(gStr, j); |
} |