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

Unified Diff: bench/PathUtilsBench.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/PathIterBench.cpp ('k') | bench/PerlinNoiseBench.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/PathUtilsBench.cpp
diff --git a/bench/PathUtilsBench.cpp b/bench/PathUtilsBench.cpp
index 06ef5dffb45b2c3b8ce69188a4676498bebcafd1..4231b72fab58370b69c3902a78ccd8df96e7aac3 100644
--- a/bench/PathUtilsBench.cpp
+++ b/bench/PathUtilsBench.cpp
@@ -52,9 +52,9 @@ public:
protected:
virtual const char* onGetName() { return fName.c_str(); }
- virtual void onDraw(SkCanvas* canvas) {
+ virtual void onDraw(const int loops, SkCanvas* canvas) {
- for (int i = 0; i < this->getLoops(); ++i){
+ for (int i = 0; i < loops; ++i){
//create a random 16x16 bitmap
fillRandomBits(H * STRIDE, (char*) &bits);
« no previous file with comments | « bench/PathIterBench.cpp ('k') | bench/PerlinNoiseBench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698