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

Side by Side Diff: remoting/protocol/video_frame_pump.h

Issue 1844143002: Add VideoLayout message. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « remoting/protocol/protocol_mock_objects.h ('k') | remoting/protocol/video_frame_pump.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 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
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
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_
OLDNEW
« no previous file with comments | « remoting/protocol/protocol_mock_objects.h ('k') | remoting/protocol/video_frame_pump.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698