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

Unified Diff: remoting/client/rectangle_update_decoder.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/client/rectangle_update_decoder.h ('k') | remoting/host/chromoting_host_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/rectangle_update_decoder.cc
diff --git a/remoting/client/rectangle_update_decoder.cc b/remoting/client/rectangle_update_decoder.cc
index 8eeebd5082054fef2c4a5719fa3f5c5d3618b85f..0ad04221ed6a685732cf51863e31d30873b41765 100644
--- a/remoting/client/rectangle_update_decoder.cc
+++ b/remoting/client/rectangle_update_decoder.cc
@@ -52,12 +52,12 @@ void RectangleUpdateDecoder::Initialize(const SessionConfig& config) {
}
}
-void RectangleUpdateDecoder::DecodePacket(const VideoPacket* packet,
+void RectangleUpdateDecoder::DecodePacket(scoped_ptr<VideoPacket> packet,
const base::Closure& done) {
if (!message_loop_->BelongsToCurrentThread()) {
message_loop_->PostTask(
FROM_HERE, base::Bind(&RectangleUpdateDecoder::DecodePacket,
- this, packet, done));
+ this, base::Passed(&packet), done));
return;
}
@@ -91,7 +91,7 @@ void RectangleUpdateDecoder::DecodePacket(const VideoPacket* packet,
return;
}
- if (decoder_->DecodePacket(packet) == Decoder::DECODE_DONE)
+ if (decoder_->DecodePacket(packet.get()) == Decoder::DECODE_DONE)
SchedulePaint();
}
« no previous file with comments | « remoting/client/rectangle_update_decoder.h ('k') | remoting/host/chromoting_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698