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

Unified Diff: chromecast/media/cma/pipeline/av_pipeline_impl.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/pipeline/av_pipeline_impl.cc
diff --git a/chromecast/media/cma/pipeline/av_pipeline_impl.cc b/chromecast/media/cma/pipeline/av_pipeline_impl.cc
index 71b29f15b9049399ba6ecae73130698753ebcf42..4714d7a48054eb9d76c5832b73159ffd2f7b6713 100644
--- a/chromecast/media/cma/pipeline/av_pipeline_impl.cc
+++ b/chromecast/media/cma/pipeline/av_pipeline_impl.cc
@@ -4,6 +4,8 @@
#include "chromecast/media/cma/pipeline/av_pipeline_impl.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/location.h"
#include "base/single_thread_task_runner.h"
@@ -81,9 +83,7 @@ void AvPipelineImpl::SetCodedFrameProvider(
// Wrap the incoming frame provider to add some buffering capabilities.
frame_provider_.reset(new BufferingFrameProvider(
- frame_provider.Pass(),
- max_buffer_size,
- max_frame_size,
+ std::move(frame_provider), max_buffer_size, max_frame_size,
base::Bind(&AvPipelineImpl::OnDataBuffered, weak_this_)));
}
@@ -274,7 +274,7 @@ void AvPipelineImpl::ProcessPendingBuffer() {
DCHECK(!pushed_buffer_);
pushed_buffer_ = pending_buffer_;
if (decrypt_context && decrypt_context->GetKeySystem() != KEY_SYSTEM_NONE)
- pushed_buffer_->set_decrypt_context(decrypt_context.Pass());
+ pushed_buffer_->set_decrypt_context(std::move(decrypt_context));
pending_buffer_ = nullptr;
MediaPipelineBackend::BufferStatus status =
decoder_->PushBuffer(pushed_buffer_.get());

Powered by Google App Engine
This is Rietveld 408576698