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

Unified Diff: media/base/android/media_codec_video_decoder.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_codec_player_unittest.cc ('k') | media/base/android/media_drm_bridge.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/android/media_codec_video_decoder.cc
diff --git a/media/base/android/media_codec_video_decoder.cc b/media/base/android/media_codec_video_decoder.cc
index 928f2e74ef732680754638f0c927d32a96ae9b49..2726d3aa5b0d35b080fbbdeb42dea04ab6fe8822 100644
--- a/media/base/android/media_codec_video_decoder.cc
+++ b/media/base/android/media_codec_video_decoder.cc
@@ -4,6 +4,8 @@
#include "media/base/android/media_codec_video_decoder.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/logging.h"
#include "media/base/android/media_statistics.h"
@@ -100,7 +102,7 @@ void MediaCodecVideoDecoder::SetVideoSurface(gfx::ScopedJavaSurface surface) {
DVLOG(1) << class_name() << "::" << __FUNCTION__
<< (surface.IsEmpty() ? " empty" : " non-empty");
- surface_ = surface.Pass();
+ surface_ = std::move(surface);
needs_reconfigure_ = true;
}
« no previous file with comments | « media/base/android/media_codec_player_unittest.cc ('k') | media/base/android/media_drm_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698