diff options
author | bsalomon <bsalomon@google.com> | 2014-08-14 12:24:46 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-08-14 12:24:46 -0700 |
commit | a7f79b47fa8924691f69da5d71d3c402c7f9bf6f (patch) | |
tree | af73233bb4cc7c4cad697e2416125daf89e3c39d /bench | |
parent | f878e3cb3cada23701572be24ff88f54016c7937 (diff) |
remove internal repeat count from gradient benches
NOTREECHECKS=true
R=mtklein@google.com
Author: bsalomon@google.com
Review URL: https://codereview.chromium.org/476923002
Diffstat (limited to 'bench')
-rw-r--r-- | bench/GradientBench.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bench/GradientBench.cpp b/bench/GradientBench.cpp index f3e783e78f..e5e5fc385f 100644 --- a/bench/GradientBench.cpp +++ b/bench/GradientBench.cpp @@ -207,7 +207,6 @@ class GradientBench : public Benchmark { enum { W = 400, H = 400, - kRepeat = 15, }; public: SkShader* makeShader(GradType gradType, GradData data, SkShader::TileMode tm, float scale) { @@ -275,7 +274,7 @@ protected: } SkRect r = { 0, 0, SkIntToScalar(W), SkIntToScalar(H) }; - for (int i = 0; i < loops * kRepeat; i++) { + for (int i = 0; i < loops; i++) { switch (fGeomType) { case kRect_GeomType: canvas->drawRect(r, paint); |