diff options
author | cdalton <cdalton@nvidia.com> | 2015-06-25 10:51:56 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-06-25 10:51:56 -0700 |
commit | b4022965a280dd1ed64d6103dd29e2189abe6e00 (patch) | |
tree | f7bea91cb929485d20f35c1edf19e9b0f3f57c64 /bench/Benchmark.h | |
parent | b0c5071a376ecfb608c49886f2c86b1ce40b1389 (diff) |
Add loopSKP flag to nanobench
Adds a loopSKP flag that forces SKPBenches to draw with only 1 loop.
BUG=skia:
Review URL: https://codereview.chromium.org/1203193002
Diffstat (limited to 'bench/Benchmark.h')
-rw-r--r-- | bench/Benchmark.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bench/Benchmark.h b/bench/Benchmark.h index 22b52ab4e8..30ceb88acb 100644 --- a/bench/Benchmark.h +++ b/bench/Benchmark.h @@ -65,6 +65,10 @@ public: return backend != kNonRendering_Backend; } + virtual int calculateLoops(int defaultLoops) const { + return defaultLoops; + } + // Call before draw, allows the benchmark to do setup work outside of the // timer. When a benchmark is repeatedly drawn, this should be called once // before the initial draw. |