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

Unified Diff: media/capture/content/thread_safe_capture_oracle.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/content/thread_safe_capture_oracle.cc
diff --git a/media/capture/content/thread_safe_capture_oracle.cc b/media/capture/content/thread_safe_capture_oracle.cc
index a721a94049517595c005c6bbe7d65b4c68123b4a..a99a99a16b17ca711e2762683bd17c386194a718 100644
--- a/media/capture/content/thread_safe_capture_oracle.cc
+++ b/media/capture/content/thread_safe_capture_oracle.cc
@@ -5,6 +5,7 @@
#include "media/capture/content/thread_safe_capture_oracle.h"
#include <stdint.h>
+#include <utility>
#include "base/bind.h"
#include "base/bits.h"
@@ -35,7 +36,7 @@ ThreadSafeCaptureOracle::ThreadSafeCaptureOracle(
scoped_ptr<VideoCaptureDevice::Client> client,
const VideoCaptureParams& params,
bool enable_auto_throttling)
- : client_(client.Pass()),
+ : client_(std::move(client)),
oracle_(base::TimeDelta::FromMicroseconds(static_cast<int64_t>(
1000000.0 / params.requested_format.frame_rate +
0.5 /* to round to nearest int */)),
@@ -185,7 +186,7 @@ void ThreadSafeCaptureOracle::DidCaptureFrame(
base::Bind(&ThreadSafeCaptureOracle::DidConsumeFrame, this,
frame_number, frame->metadata()));
- client_->OnIncomingCapturedVideoFrame(buffer.Pass(), frame, timestamp);
+ client_->OnIncomingCapturedVideoFrame(std::move(buffer), frame, timestamp);
}
}
« no previous file with comments | « media/capture/content/screen_capture_device_core.cc ('k') | media/capture/video/fake_video_capture_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698