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

Unified Diff: remoting/protocol/protobuf_video_reader.cc

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, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/protocol/protobuf_video_reader.h ('k') | remoting/protocol/protobuf_video_writer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/protobuf_video_reader.cc
diff --git a/remoting/protocol/protobuf_video_reader.cc b/remoting/protocol/protobuf_video_reader.cc
index 04d6301a8ba344b9b8f5926f201bffeebff8b8c3..827a63f49262bd74ea55e66f200f0d38dbfd0fb2 100644
--- a/remoting/protocol/protobuf_video_reader.cc
+++ b/remoting/protocol/protobuf_video_reader.cc
@@ -53,9 +53,9 @@ void ProtobufVideoReader::OnChannelReady(scoped_ptr<net::StreamSocket> socket) {
initialized_callback_.Run(true);
}
-void ProtobufVideoReader::OnNewData(VideoPacket* packet,
+void ProtobufVideoReader::OnNewData(scoped_ptr<VideoPacket> packet,
const base::Closure& done_task) {
- video_stub_->ProcessVideoPacket(packet, done_task);
+ video_stub_->ProcessVideoPacket(packet.Pass(), done_task);
}
} // namespace protocol
« no previous file with comments | « remoting/protocol/protobuf_video_reader.h ('k') | remoting/protocol/protobuf_video_writer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698