Index: remoting/host/capture_scheduler.h |
diff --git a/remoting/host/capture_scheduler.h b/remoting/host/capture_scheduler.h |
index b743f578d53717b41f319ce6fc614f3fc85cecf5..7e7173ee56adda7a187152fcd011e693d078bf67 100644 |
--- a/remoting/host/capture_scheduler.h |
+++ b/remoting/host/capture_scheduler.h |
@@ -19,13 +19,17 @@ class CaptureScheduler { |
CaptureScheduler(); |
~CaptureScheduler(); |
- // Determine the time delay from current time to perform next capture. |
+ // Returns the time to wait after initiating the a capture before triggering |
+ // the next. |
base::TimeDelta NextCaptureDelay(); |
- // Record time spent on capturing and encoding. |
+ // Records time spent on capturing and encoding. |
void RecordCaptureTime(base::TimeDelta capture_time); |
void RecordEncodeTime(base::TimeDelta encode_time); |
+ // Overrides the number of processors for testing. |
+ void SetNumOfProcessorsForTest(int num_of_processors); |
+ |
private: |
int num_of_processors_; |
RunningAverage capture_time_; |