OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "remoting/host/capture_scheduler.h" | 5 #include "remoting/host/capture_scheduler.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/sys_info.h" | 10 #include "base/sys_info.h" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 } | 53 } |
54 | 54 |
55 void CaptureScheduler::RecordCaptureTime(base::TimeDelta capture_time) { | 55 void CaptureScheduler::RecordCaptureTime(base::TimeDelta capture_time) { |
56 capture_time_.Record(capture_time.InMilliseconds()); | 56 capture_time_.Record(capture_time.InMilliseconds()); |
57 } | 57 } |
58 | 58 |
59 void CaptureScheduler::RecordEncodeTime(base::TimeDelta encode_time) { | 59 void CaptureScheduler::RecordEncodeTime(base::TimeDelta encode_time) { |
60 encode_time_.Record(encode_time.InMilliseconds()); | 60 encode_time_.Record(encode_time.InMilliseconds()); |
61 } | 61 } |
62 | 62 |
| 63 void CaptureScheduler::SetNumOfProcessorsForTest(int num_of_processors) { |
| 64 num_of_processors_ = num_of_processors; |
| 65 } |
| 66 |
63 } // namespace remoting | 67 } // namespace remoting |
OLD | NEW |