| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_PROTOCOL_VIDEO_FRAME_PUMP_H_ | 5 #ifndef REMOTING_PROTOCOL_VIDEO_FRAME_PUMP_H_ |
| 6 #define REMOTING_PROTOCOL_VIDEO_FRAME_PUMP_H_ | 6 #define REMOTING_PROTOCOL_VIDEO_FRAME_PUMP_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 scoped_ptr<webrtc::DesktopCapturer> capturer_; | 160 scoped_ptr<webrtc::DesktopCapturer> capturer_; |
| 161 | 161 |
| 162 // Used to encode captured frames. Always accessed on the encode thread. | 162 // Used to encode captured frames. Always accessed on the encode thread. |
| 163 scoped_ptr<VideoEncoder> encoder_; | 163 scoped_ptr<VideoEncoder> encoder_; |
| 164 | 164 |
| 165 // Interface through which video frames are passed to the client. | 165 // Interface through which video frames are passed to the client. |
| 166 protocol::VideoStub* video_stub_; | 166 protocol::VideoStub* video_stub_; |
| 167 | 167 |
| 168 SizeCallback size_callback_; | 168 SizeCallback size_callback_; |
| 169 webrtc::DesktopSize frame_size_; | 169 webrtc::DesktopSize frame_size_; |
| 170 webrtc::DesktopVector frame_dpi_; |
| 170 | 171 |
| 171 // Timer used to ensure that we send empty keep-alive frames to the client | 172 // Timer used to ensure that we send empty keep-alive frames to the client |
| 172 // even when the video stream is paused or encoder is busy. | 173 // even when the video stream is paused or encoder is busy. |
| 173 base::Timer keep_alive_timer_; | 174 base::Timer keep_alive_timer_; |
| 174 | 175 |
| 175 // CaptureScheduler calls CaptureNextFrame() whenever a new frame needs to be | 176 // CaptureScheduler calls CaptureNextFrame() whenever a new frame needs to be |
| 176 // captured. | 177 // captured. |
| 177 CaptureScheduler capture_scheduler_; | 178 CaptureScheduler capture_scheduler_; |
| 178 | 179 |
| 179 // Timestamps for the frame to be captured next. | 180 // Timestamps for the frame to be captured next. |
| (...skipping 10 matching lines...) Expand all Loading... |
| 190 | 191 |
| 191 base::WeakPtrFactory<VideoFramePump> weak_factory_; | 192 base::WeakPtrFactory<VideoFramePump> weak_factory_; |
| 192 | 193 |
| 193 DISALLOW_COPY_AND_ASSIGN(VideoFramePump); | 194 DISALLOW_COPY_AND_ASSIGN(VideoFramePump); |
| 194 }; | 195 }; |
| 195 | 196 |
| 196 } // namespace protocol | 197 } // namespace protocol |
| 197 } // namespace remoting | 198 } // namespace remoting |
| 198 | 199 |
| 199 #endif // REMOTING_PROTOCOL_VIDEO_FRAME_PUMP_H_ | 200 #endif // REMOTING_PROTOCOL_VIDEO_FRAME_PUMP_H_ |
| OLD | NEW |