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

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

Issue 9827006: Refactor VideoStub interface to accept ownership of video packets. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « remoting/host/chromoting_host_unittest.cc ('k') | remoting/host/screen_recorder.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_SCREEN_RECORDER_H_ 5 #ifndef REMOTING_HOST_SCREEN_RECORDER_H_
6 #define REMOTING_HOST_SCREEN_RECORDER_H_ 6 #define REMOTING_HOST_SCREEN_RECORDER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 // Network thread ----------------------------------------------------------- 126 // Network thread -----------------------------------------------------------
127 127
128 void DoSendVideoPacket(scoped_ptr<VideoPacket> packet); 128 void DoSendVideoPacket(scoped_ptr<VideoPacket> packet);
129 129
130 void DoSendInit(scoped_refptr<protocol::ConnectionToClient> connection, 130 void DoSendInit(scoped_refptr<protocol::ConnectionToClient> connection,
131 int width, int height); 131 int width, int height);
132 132
133 // Signal network thread to cease activities. 133 // Signal network thread to cease activities.
134 void DoStopOnNetworkThread(const base::Closure& done_task); 134 void DoStopOnNetworkThread(const base::Closure& done_task);
135 135
136 // Callback for VideoStub::ProcessVideoPacket(). 136 // Callback for VideoStub::ProcessVideoPacket() that is used for
137 void VideoPacketSentCallback(scoped_ptr<VideoPacket> packet); 137 // each last packet in a frame.
138 void VideoFrameSentCallback();
138 139
139 // Encoder thread ----------------------------------------------------------- 140 // Encoder thread -----------------------------------------------------------
140 141
141 void DoEncode(scoped_refptr<CaptureData> capture_data); 142 void DoEncode(scoped_refptr<CaptureData> capture_data);
142 143
143 // Perform stop operations on encode thread. 144 // Perform stop operations on encode thread.
144 void DoStopOnEncodeThread(const base::Closure& done_task); 145 void DoStopOnEncodeThread(const base::Closure& done_task);
145 146
146 void EncodedDataAvailableCallback(scoped_ptr<VideoPacket> packet); 147 void EncodedDataAvailableCallback(scoped_ptr<VideoPacket> packet);
147 void SendVideoPacket(VideoPacket* packet); 148 void SendVideoPacket(VideoPacket* packet);
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 198
198 // An object to schedule capturing. 199 // An object to schedule capturing.
199 CaptureScheduler scheduler_; 200 CaptureScheduler scheduler_;
200 201
201 DISALLOW_COPY_AND_ASSIGN(ScreenRecorder); 202 DISALLOW_COPY_AND_ASSIGN(ScreenRecorder);
202 }; 203 };
203 204
204 } // namespace remoting 205 } // namespace remoting
205 206
206 #endif // REMOTING_HOST_SCREEN_RECORDER_H_ 207 #endif // REMOTING_HOST_SCREEN_RECORDER_H_
OLDNEW
« no previous file with comments | « remoting/host/chromoting_host_unittest.cc ('k') | remoting/host/screen_recorder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698