aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench/Benchmark.h
diff options
context:
space:
mode:
Diffstat (limited to 'bench/Benchmark.h')
-rw-r--r--bench/Benchmark.h4
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.