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

Unified Diff: media/base/android/media_source_player.cc

Issue 1551103002: Convert Pass()→std::move() in //media (Android Cast edition) (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 | « media/base/android/media_player_bridge.cc ('k') | media/base/android/media_source_player_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/android/media_source_player.cc
diff --git a/media/base/android/media_source_player.cc b/media/base/android/media_source_player.cc
index c36d4583929c147a683fde2489a2b67da2c0fb2b..215577bcfc4b9bd4127a66b139499bd8aad54de0 100644
--- a/media/base/android/media_source_player.cc
+++ b/media/base/android/media_source_player.cc
@@ -6,8 +6,8 @@
#include <stddef.h>
#include <stdint.h>
-
#include <limits>
+#include <utility>
#include "base/android/jni_android.h"
#include "base/android/jni_string.h"
@@ -37,7 +37,7 @@ MediaSourcePlayer::MediaSourcePlayer(
manager,
on_decoder_resources_released_cb,
frame_url),
- demuxer_(demuxer.Pass()),
+ demuxer_(std::move(demuxer)),
pending_event_(NO_EVENT_PENDING),
playing_(false),
interpolator_(&default_tick_clock_),
@@ -82,7 +82,7 @@ MediaSourcePlayer::~MediaSourcePlayer() {
void MediaSourcePlayer::SetVideoSurface(gfx::ScopedJavaSurface surface) {
DVLOG(1) << __FUNCTION__;
- if (!video_decoder_job_->SetVideoSurface(surface.Pass()))
+ if (!video_decoder_job_->SetVideoSurface(std::move(surface)))
return;
// Retry video decoder creation.
RetryDecoderCreation(false, true);
« no previous file with comments | « media/base/android/media_player_bridge.cc ('k') | media/base/android/media_source_player_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698