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

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

Issue 15994021: Fix VideoScheduler to set client_sequence_number in video packets. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 | « no previous file | remoting/host/video_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) 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
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
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_
OLDNEW
« no previous file with comments | « no previous file | remoting/host/video_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698