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

Unified Diff: bench/RepeatTileBench.cpp

Issue 23478013: Major bench refactoring. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: merge with head agani 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
« no previous file with comments | « bench/RegionContainBench.cpp ('k') | bench/ScalarBench.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/RepeatTileBench.cpp
diff --git a/bench/RepeatTileBench.cpp b/bench/RepeatTileBench.cpp
index 348f906676139c558b9bf426d06522d75940926a..ab7ccf4ccde1868aa217099ddec28ef92204ec82 100644
--- a/bench/RepeatTileBench.cpp
+++ b/bench/RepeatTileBench.cpp
@@ -89,7 +89,6 @@ class RepeatTileBench : public SkBenchmark {
SkBitmap fBitmap;
bool fIsOpaque;
SkBitmap::Config fConfig;
- enum { N = SkBENCHLOOP(20) };
public:
RepeatTileBench(void* param, SkBitmap::Config c, bool isOpaque = false) : INHERITED(param) {
const int w = 50;
@@ -135,7 +134,7 @@ protected:
SkPaint paint(fPaint);
this->setupPaint(&paint);
- for (int i = 0; i < N; i++) {
+ for (int i = 0; i < this->getLoops(); i++) {
canvas->drawPaint(paint);
}
}
« no previous file with comments | « bench/RegionContainBench.cpp ('k') | bench/ScalarBench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698