| 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 // rate-limit frame captures to network throughput. | 142 // rate-limit frame captures to network throughput. |
| 143 void VideoFrameSentCallback(); | 143 void VideoFrameSentCallback(); |
| 144 | 144 |
| 145 // Send updated cursor shape to client. | 145 // Send updated cursor shape to client. |
| 146 void SendCursorShape(scoped_ptr<protocol::CursorShapeInfo> cursor_shape); | 146 void SendCursorShape(scoped_ptr<protocol::CursorShapeInfo> cursor_shape); |
| 147 | 147 |
| 148 // Encoder thread ----------------------------------------------------------- | 148 // Encoder thread ----------------------------------------------------------- |
| 149 | 149 |
| 150 // Encode a frame, passing generated VideoPackets to SendVideoPacket(). | 150 // Encode a frame, passing generated VideoPackets to SendVideoPacket(). |
| 151 void EncodeFrame(scoped_ptr<webrtc::DesktopFrame> frame, | 151 void EncodeFrame(scoped_ptr<webrtc::DesktopFrame> frame, |
| 152 int sequence_number); | 152 int64 sequence_number); |
| 153 | 153 |
| 154 void EncodedDataAvailableCallback(int sequence_number, | 154 void EncodedDataAvailableCallback(int64 sequence_number, |
| 155 scoped_ptr<VideoPacket> packet); | 155 scoped_ptr<VideoPacket> packet); |
| 156 | 156 |
| 157 // Task runners used by this class. | 157 // Task runners used by this class. |
| 158 scoped_refptr<base::SingleThreadTaskRunner> capture_task_runner_; | 158 scoped_refptr<base::SingleThreadTaskRunner> capture_task_runner_; |
| 159 scoped_refptr<base::SingleThreadTaskRunner> encode_task_runner_; | 159 scoped_refptr<base::SingleThreadTaskRunner> encode_task_runner_; |
| 160 scoped_refptr<base::SingleThreadTaskRunner> network_task_runner_; | 160 scoped_refptr<base::SingleThreadTaskRunner> network_task_runner_; |
| 161 | 161 |
| 162 // Used to capture frames. Always accessed on the capture thread. | 162 // Used to capture frames. Always accessed on the capture thread. |
| 163 scoped_ptr<media::ScreenCapturer> capturer_; | 163 scoped_ptr<media::ScreenCapturer> capturer_; |
| 164 | 164 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 192 | 192 |
| 193 // An object to schedule capturing. | 193 // An object to schedule capturing. |
| 194 CaptureScheduler scheduler_; | 194 CaptureScheduler scheduler_; |
| 195 | 195 |
| 196 DISALLOW_COPY_AND_ASSIGN(VideoScheduler); | 196 DISALLOW_COPY_AND_ASSIGN(VideoScheduler); |
| 197 }; | 197 }; |
| 198 | 198 |
| 199 } // namespace remoting | 199 } // namespace remoting |
| 200 | 200 |
| 201 #endif // REMOTING_HOST_VIDEO_SCHEDULER_H_ | 201 #endif // REMOTING_HOST_VIDEO_SCHEDULER_H_ |
| OLD | NEW |