| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef REMOTING_HOST_VIDEO_SCHEDULER_H_ | 5 #ifndef REMOTING_HOST_VIDEO_SCHEDULER_H_ |
| 6 #define REMOTING_HOST_VIDEO_SCHEDULER_H_ | 6 #define REMOTING_HOST_VIDEO_SCHEDULER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 scoped_refptr<base::SingleThreadTaskRunner> capture_task_runner, | 88 scoped_refptr<base::SingleThreadTaskRunner> capture_task_runner, |
| 89 scoped_refptr<base::SingleThreadTaskRunner> encode_task_runner, | 89 scoped_refptr<base::SingleThreadTaskRunner> encode_task_runner, |
| 90 scoped_refptr<base::SingleThreadTaskRunner> network_task_runner, | 90 scoped_refptr<base::SingleThreadTaskRunner> network_task_runner, |
| 91 scoped_ptr<webrtc::DesktopCapturer> capturer, | 91 scoped_ptr<webrtc::DesktopCapturer> capturer, |
| 92 scoped_ptr<webrtc::MouseCursorMonitor> mouse_cursor_monitor, | 92 scoped_ptr<webrtc::MouseCursorMonitor> mouse_cursor_monitor, |
| 93 scoped_ptr<VideoEncoder> encoder, | 93 scoped_ptr<VideoEncoder> encoder, |
| 94 protocol::CursorShapeStub* cursor_stub, | 94 protocol::CursorShapeStub* cursor_stub, |
| 95 protocol::VideoStub* video_stub); | 95 protocol::VideoStub* video_stub); |
| 96 | 96 |
| 97 // webrtc::DesktopCapturer::Callback implementation. | 97 // webrtc::DesktopCapturer::Callback implementation. |
| 98 virtual webrtc::SharedMemory* CreateSharedMemory(size_t size) OVERRIDE; | 98 virtual webrtc::SharedMemory* CreateSharedMemory(size_t size) override; |
| 99 virtual void OnCaptureCompleted(webrtc::DesktopFrame* frame) OVERRIDE; | 99 virtual void OnCaptureCompleted(webrtc::DesktopFrame* frame) override; |
| 100 | 100 |
| 101 // webrtc::MouseCursorMonitor::Callback implementation. | 101 // webrtc::MouseCursorMonitor::Callback implementation. |
| 102 virtual void OnMouseCursor( | 102 virtual void OnMouseCursor( |
| 103 webrtc::MouseCursor* mouse_cursor) OVERRIDE; | 103 webrtc::MouseCursor* mouse_cursor) override; |
| 104 virtual void OnMouseCursorPosition( | 104 virtual void OnMouseCursorPosition( |
| 105 webrtc::MouseCursorMonitor::CursorState state, | 105 webrtc::MouseCursorMonitor::CursorState state, |
| 106 const webrtc::DesktopVector& position) OVERRIDE; | 106 const webrtc::DesktopVector& position) override; |
| 107 | 107 |
| 108 // Starts scheduling frame captures. | 108 // Starts scheduling frame captures. |
| 109 void Start(); | 109 void Start(); |
| 110 | 110 |
| 111 // Stop scheduling frame captures. This object cannot be re-used once | 111 // Stop scheduling frame captures. This object cannot be re-used once |
| 112 // it has been stopped. | 112 // it has been stopped. |
| 113 void Stop(); | 113 void Stop(); |
| 114 | 114 |
| 115 // Pauses or resumes scheduling of frame captures. Pausing/resuming captures | 115 // Pauses or resumes scheduling of frame captures. Pausing/resuming captures |
| 116 // only affects capture scheduling and does not stop/start the capturer. | 116 // only affects capture scheduling and does not stop/start the capturer. |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 | 219 |
| 220 // An object to schedule capturing. | 220 // An object to schedule capturing. |
| 221 CaptureScheduler scheduler_; | 221 CaptureScheduler scheduler_; |
| 222 | 222 |
| 223 DISALLOW_COPY_AND_ASSIGN(VideoScheduler); | 223 DISALLOW_COPY_AND_ASSIGN(VideoScheduler); |
| 224 }; | 224 }; |
| 225 | 225 |
| 226 } // namespace remoting | 226 } // namespace remoting |
| 227 | 227 |
| 228 #endif // REMOTING_HOST_VIDEO_SCHEDULER_H_ | 228 #endif // REMOTING_HOST_VIDEO_SCHEDULER_H_ |
| OLD | NEW |