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

Unified Diff: chromecast/renderer/media/video_pipeline_proxy.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
« no previous file with comments | « chromecast/renderer/media/media_pipeline_proxy.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/renderer/media/video_pipeline_proxy.cc
diff --git a/chromecast/renderer/media/video_pipeline_proxy.cc b/chromecast/renderer/media/video_pipeline_proxy.cc
index 07691bbe9d11b94727c7e5f484f213a9db607d43..5e4f2e12669eb3b6879e801bf2da07b767eb8cab 100644
--- a/chromecast/renderer/media/video_pipeline_proxy.cc
+++ b/chromecast/renderer/media/video_pipeline_proxy.cc
@@ -4,6 +4,8 @@
#include "chromecast/renderer/media/video_pipeline_proxy.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/callback_helpers.h"
#include "base/macros.h"
@@ -229,7 +231,7 @@ void VideoPipelineProxy::Initialize(
const ::media::PipelineStatusCB& status_cb) {
CMALOG(kLogControl) << "VideoPipelineProxy::Initialize";
DCHECK(thread_checker_.CalledOnValidThread());
- video_streamer_->SetCodedFrameProvider(frame_provider.Pass());
+ video_streamer_->SetCodedFrameProvider(std::move(frame_provider));
VideoPipelineProxyInternal::SharedMemCB shared_mem_cb =
::media::BindToCurrentLoop(base::Bind(
@@ -252,13 +254,13 @@ void VideoPipelineProxy::OnAvPipeCreated(
CHECK(shared_memory->memory());
scoped_ptr<MediaMemoryChunk> shared_memory_chunk(
- new SharedMemoryChunk(shared_memory.Pass(), kAppVideoBufferSize));
+ new SharedMemoryChunk(std::move(shared_memory), kAppVideoBufferSize));
scoped_ptr<MediaMessageFifo> video_pipe(
- new MediaMessageFifo(shared_memory_chunk.Pass(), false));
+ new MediaMessageFifo(std::move(shared_memory_chunk), false));
video_pipe->ObserveWriteActivity(
base::Bind(&VideoPipelineProxy::OnPipeWrite, weak_this_));
- video_streamer_->SetMediaMessageFifo(video_pipe.Pass());
+ video_streamer_->SetMediaMessageFifo(std::move(video_pipe));
// Now proceed to the decoder/renderer initialization.
FORWARD_ON_IO_THREAD(Initialize, configs, status_cb);
« no previous file with comments | « chromecast/renderer/media/media_pipeline_proxy.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698