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

Unified Diff: bench/PerlinNoiseBench.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/PathUtilsBench.cpp ('k') | bench/PicturePlaybackBench.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/PerlinNoiseBench.cpp
diff --git a/bench/PerlinNoiseBench.cpp b/bench/PerlinNoiseBench.cpp
index d1518252104b6bfb3bdd95d383283d7a3127fad1..605acf4f3678b2661ccda441beded9bc99cfcc63 100644
--- a/bench/PerlinNoiseBench.cpp
+++ b/bench/PerlinNoiseBench.cpp
@@ -48,7 +48,10 @@ private:
seed, stitchTiles ? &fSize : NULL);
SkPaint paint;
paint.setShader(shader)->unref();
- this->drawClippedRect(canvas, x, y, paint);
+
+ for (int i = 0; i < this->getLoops(); i++) {
+ this->drawClippedRect(canvas, x, y, paint);
+ }
}
typedef SkBenchmark INHERITED;
« no previous file with comments | « bench/PathUtilsBench.cpp ('k') | bench/PicturePlaybackBench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698