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

Unified Diff: bench/benchmain.cpp

Issue 16069010: extend SkBenchmark to allow a bench to return a durationScale, which allows it to perform fewer act… (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 7 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 | « bench/SkBenchmark.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/benchmain.cpp
diff --git a/bench/benchmain.cpp b/bench/benchmain.cpp
index 4d385a23e63060d2409dfc8d16603d25705f96b0..7ad8a6850868b6a3f4fc88911ba0d3a77fd7a296 100644
--- a/bench/benchmain.cpp
+++ b/bench/benchmain.cpp
@@ -915,7 +915,7 @@ int tool_main(int argc, char** argv) {
SkPicture::kUsePathBoundsForClip_RecordingFlag);
}
- timer->start();
+ timer->start(bench->getDurationScale());
if (NULL != canvas) {
canvas->save();
}
« no previous file with comments | « bench/SkBenchmark.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698