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

Unified Diff: bench/PathUtilsBench.cpp

Issue 23478013: Major bench refactoring. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: epoger Created 7 years, 3 months 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
Index: bench/PathUtilsBench.cpp
diff --git a/bench/PathUtilsBench.cpp b/bench/PathUtilsBench.cpp
index a021f22f681836e8b988df63cfe10a41d7884f29..0a897f197948ee86acb5a245855cfc3b0303b478 100644
--- a/bench/PathUtilsBench.cpp
+++ b/bench/PathUtilsBench.cpp
@@ -41,8 +41,6 @@ class PathUtilsBench : public SkBenchmark {
SkString fName;
char* bits[H * STRIDE];
- enum { N = SkBENCHLOOP(20) };
-
public:
PathUtilsBench(void* param, Proc proc, const char name[]) : INHERITED(param) {
fProc = proc;
@@ -56,7 +54,7 @@ protected:
virtual void onDraw(SkCanvas* canvas) {
- for (int i = 0; i < N; ++i){
+ for (int i = 0; i < this->getLoops(); ++i){
//create a random 16x16 bitmap
fillRandomBits(H * STRIDE, (char*) &bits);

Powered by Google App Engine
This is Rietveld 408576698