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

Unified Diff: content/browser/media/capture/web_contents_video_capture_device.cc

Issue 2490153003: [Mojo Video Capture] Replace const scoped_refptr<T>& with scoped_refptr<T> and use std::move (Closed)
Patch Set: fix bots Created 4 years, 1 month 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: content/browser/media/capture/web_contents_video_capture_device.cc
diff --git a/content/browser/media/capture/web_contents_video_capture_device.cc b/content/browser/media/capture/web_contents_video_capture_device.cc
index 1458199d52bc19cec436723f760c645be60dd4f6..5212e7c1c8ee3d4f35aacb414ff4cf331089552a 100644
--- a/content/browser/media/capture/web_contents_video_capture_device.cc
+++ b/content/browser/media/capture/web_contents_video_capture_device.cc
@@ -136,7 +136,7 @@ class FrameSubscriber : public RenderWidgetHostViewFrameSubscriber {
base::WeakPtr<FrameSubscriber> frame_subscriber_,
const media::ThreadSafeCaptureOracle::CaptureFrameCallback&
capture_frame_cb,
- const scoped_refptr<media::VideoFrame>& frame,
+ scoped_refptr<media::VideoFrame> frame,
base::TimeTicks timestamp,
const gfx::Rect& region_in_frame,
bool success);
@@ -358,7 +358,7 @@ void FrameSubscriber::DidCaptureFrame(
base::WeakPtr<FrameSubscriber> frame_subscriber_,
const media::ThreadSafeCaptureOracle::CaptureFrameCallback&
capture_frame_cb,
- const scoped_refptr<media::VideoFrame>& frame,
+ scoped_refptr<media::VideoFrame> frame,
base::TimeTicks timestamp,
const gfx::Rect& region_in_frame,
bool success) {
@@ -380,7 +380,7 @@ void FrameSubscriber::DidCaptureFrame(
frame_subscriber_->IsUserInteractingWithContent());
}
}
- capture_frame_cb.Run(frame, timestamp, success);
+ capture_frame_cb.Run(std::move(frame), timestamp, success);
}
bool FrameSubscriber::IsUserInteractingWithContent() {

Powered by Google App Engine
This is Rietveld 408576698