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

Unified Diff: chromecast/media/cma/ipc_streamer/decoder_buffer_base_marshaller.cc

Issue 1553503002: Convert Pass()→std::move() in //chromecast (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
Index: chromecast/media/cma/ipc_streamer/decoder_buffer_base_marshaller.cc
diff --git a/chromecast/media/cma/ipc_streamer/decoder_buffer_base_marshaller.cc b/chromecast/media/cma/ipc_streamer/decoder_buffer_base_marshaller.cc
index cc8b63bd2ae8b1defdf9a08a42f5bc76709cf96a..d0b2b0043dbd0bd530e300305b0da7fc11277dfc 100644
--- a/chromecast/media/cma/ipc_streamer/decoder_buffer_base_marshaller.cc
+++ b/chromecast/media/cma/ipc_streamer/decoder_buffer_base_marshaller.cc
@@ -6,6 +6,7 @@
#include <stddef.h>
#include <stdint.h>
+#include <utility>
#include "base/logging.h"
#include "base/macros.h"
@@ -66,12 +67,8 @@ class DecoderBufferFromMsg : public DecoderBufferBase {
DISALLOW_COPY_AND_ASSIGN(DecoderBufferFromMsg);
};
-DecoderBufferFromMsg::DecoderBufferFromMsg(
- scoped_ptr<MediaMessage> msg)
- : is_eos_(true),
- stream_id_(kPrimary),
- msg_(msg.Pass()),
- data_(NULL) {
+DecoderBufferFromMsg::DecoderBufferFromMsg(scoped_ptr<MediaMessage> msg)
+ : is_eos_(true), stream_id_(kPrimary), msg_(std::move(msg)), data_(NULL) {
CHECK(msg_);
}
@@ -203,7 +200,7 @@ void DecoderBufferBaseMarshaller::Write(
scoped_refptr<DecoderBufferBase> DecoderBufferBaseMarshaller::Read(
scoped_ptr<MediaMessage> msg) {
scoped_refptr<DecoderBufferFromMsg> buffer(
- new DecoderBufferFromMsg(msg.Pass()));
+ new DecoderBufferFromMsg(std::move(msg)));
buffer->Initialize();
return buffer;
}
« no previous file with comments | « chromecast/media/cma/ipc_streamer/coded_frame_provider_host.cc ('k') | chromecast/media/cma/pipeline/audio_pipeline_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698