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() { |