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

Unified Diff: bench/RectoriBench.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/RectoriBench.cpp
diff --git a/bench/RectoriBench.cpp b/bench/RectoriBench.cpp
index 80996c976033785839320ff19d26fa358ee2037d..a94e9ebeeac8d4766796ed6d689c8e7677d981d2 100644
--- a/bench/RectoriBench.cpp
+++ b/bench/RectoriBench.cpp
@@ -27,7 +27,7 @@ protected:
virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE {
SkMWCRandom Random;
- for (int i = 0; i < N; i++) {
+ for (int i = 0; i < this->getLoops(); i++) {
SkScalar blurRad = Random.nextRangeScalar(1.5f, 25.0f);
SkScalar size = Random.nextRangeScalar(20*blurRad, 50*blurRad);
@@ -70,8 +70,6 @@ private:
H = 480,
};
- enum { N = SkBENCHLOOP(100) };
-
SkLayerDrawLooper* createLooper(SkScalar xOff, SkScalar radius) {
SkLayerDrawLooper* looper = new SkLayerDrawLooper;

Powered by Google App Engine
This is Rietveld 408576698