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

Unified Diff: bench/Benchmark.h

Issue 1203193002: Add loopSKP flag to nanobench (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 5 years, 6 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 | « no previous file | bench/SKPAnimationBench.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/Benchmark.h
diff --git a/bench/Benchmark.h b/bench/Benchmark.h
index 22b52ab4e879d65d061320b49f611697c7e375cf..30ceb88acbb4bcaeb60fa945bc50c426a929a64c 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.
« no previous file with comments | « no previous file | bench/SKPAnimationBench.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698