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

Side by Side Diff: remoting/host/capture_scheduler.h

Issue 18052008: Use a direct include of time headers in ppapi/, printing/, remoting/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « remoting/host/audio_capturer_win.h ('k') | remoting/host/capture_scheduler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 // This class chooses a capture interval so as to limit CPU usage to not exceed 5 // This class chooses a capture interval so as to limit CPU usage to not exceed
6 // a specified %age. It bases this on the CPU usage of recent capture and encode 6 // a specified %age. It bases this on the CPU usage of recent capture and encode
7 // operations, and on the number of available CPUs. 7 // operations, and on the number of available CPUs.
8 8
9 #ifndef REMOTING_HOST_CAPTURE_SCHEDULER_H_ 9 #ifndef REMOTING_HOST_CAPTURE_SCHEDULER_H_
10 #define REMOTING_HOST_CAPTURE_SCHEDULER_H_ 10 #define REMOTING_HOST_CAPTURE_SCHEDULER_H_
11 11
12 #include "base/time.h" 12 #include "base/time/time.h"
13 #include "remoting/base/running_average.h" 13 #include "remoting/base/running_average.h"
14 14
15 namespace remoting { 15 namespace remoting {
16 16
17 class CaptureScheduler { 17 class CaptureScheduler {
18 public: 18 public:
19 CaptureScheduler(); 19 CaptureScheduler();
20 ~CaptureScheduler(); 20 ~CaptureScheduler();
21 21
22 // Returns the time to wait after initiating a capture before triggering 22 // Returns the time to wait after initiating a capture before triggering
(...skipping 11 matching lines...) Expand all
34 int num_of_processors_; 34 int num_of_processors_;
35 RunningAverage capture_time_; 35 RunningAverage capture_time_;
36 RunningAverage encode_time_; 36 RunningAverage encode_time_;
37 37
38 DISALLOW_COPY_AND_ASSIGN(CaptureScheduler); 38 DISALLOW_COPY_AND_ASSIGN(CaptureScheduler);
39 }; 39 };
40 40
41 } // namespace remoting 41 } // namespace remoting
42 42
43 #endif // REMOTING_HOST_CAPTURE_SCHEDULER_H_ 43 #endif // REMOTING_HOST_CAPTURE_SCHEDULER_H_
OLDNEW
« no previous file with comments | « remoting/host/audio_capturer_win.h ('k') | remoting/host/capture_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698