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

Unified Diff: media/capture/video/fake_video_capture_device.cc

Issue 1544313002: Convert Pass()→std::move() in //media (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: media/capture/video/fake_video_capture_device.cc
diff --git a/media/capture/video/fake_video_capture_device.cc b/media/capture/video/fake_video_capture_device.cc
index a30b39815683473667254f0053a2271ab7dd8454..f4ef6addb86006f14b242c63e4febe791ffca8a1 100644
--- a/media/capture/video/fake_video_capture_device.cc
+++ b/media/capture/video/fake_video_capture_device.cc
@@ -5,8 +5,8 @@
#include "media/capture/video/fake_video_capture_device.h"
#include <stddef.h>
-
#include <algorithm>
+#include <utility>
#include "base/bind.h"
#include "base/strings/stringprintf.h"
@@ -89,7 +89,7 @@ void FakeVideoCaptureDevice::AllocateAndStart(
scoped_ptr<VideoCaptureDevice::Client> client) {
DCHECK(thread_checker_.CalledOnValidThread());
- client_ = client.Pass();
+ client_ = std::move(client);
// Incoming |params| can be none of the supported formats, so we get the
// closest thing rounded up. TODO(mcasas): Use the |params|, if they belong to
@@ -214,7 +214,7 @@ void FakeVideoCaptureDevice::CaptureUsingClientBuffers(
}
// Give the captured frame to the client.
- client_->OnIncomingCapturedBuffer(capture_buffer.Pass(), capture_format_,
+ client_->OnIncomingCapturedBuffer(std::move(capture_buffer), capture_format_,
base::TimeTicks::Now());
BeepAndScheduleNextCapture(
« no previous file with comments | « media/capture/content/thread_safe_capture_oracle.cc ('k') | media/capture/video/fake_video_capture_device_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698