Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3504)

Unified Diff: bench/TileBench.cpp

Issue 99893003: Simplify benchmark internal API. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: rebase Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « bench/TextBench.cpp ('k') | bench/VertBench.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/TileBench.cpp
diff --git a/bench/TileBench.cpp b/bench/TileBench.cpp
index 4619d8b1efea8fb6dc21773bbcab82b8f37bc1bd..9a9e27e95139c7a1aa1d333e0ef4d9cec3cf6089 100644
--- a/bench/TileBench.cpp
+++ b/bench/TileBench.cpp
@@ -82,7 +82,7 @@ protected:
return fName.c_str();
}
- virtual void onDraw(SkCanvas* canvas) {
+ virtual void onDraw(const int loops, SkCanvas* canvas) {
SkPaint paint(fPaint);
this->setupPaint(&paint);
paint.setFilterLevel(fDoFilter ? SkPaint::kLow_FilterLevel
@@ -103,7 +103,7 @@ protected:
SkPaint bgPaint;
bgPaint.setColor(SK_ColorWHITE);
- for (int i = 0; i < this->getLoops(); i++) {
+ for (int i = 0; i < loops; i++) {
if (fDoTrans) {
canvas->drawRect(r, bgPaint);
}
« no previous file with comments | « bench/TextBench.cpp ('k') | bench/VertBench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698