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

Unified Diff: bench/BenchTimer.h

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 | « no previous file | bench/BenchTimer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/BenchTimer.h
diff --git a/bench/BenchTimer.h b/bench/BenchTimer.h
index 79e1036c527294e871f24ebbc79e178da2f6ffa2..09950a734be956934c96de59c233186a3c4293ca 100644
--- a/bench/BenchTimer.h
+++ b/bench/BenchTimer.h
@@ -29,7 +29,7 @@ class BenchTimer {
public:
BenchTimer(SkGLContextHelper* gl = NULL);
~BenchTimer();
- void start();
+ void start(double durationScale = 1);
void end();
void truncatedEnd();
double fCpu;
@@ -44,6 +44,7 @@ private:
#if SK_SUPPORT_GPU
BenchGpuTimer *fGpuTimer;
#endif
+ double fDurationScale; // for this start/end session
};
#endif
« no previous file with comments | « no previous file | bench/BenchTimer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698