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

Unified Diff: media/capture/video/fake_video_capture_device_unittest.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: media/capture/video/fake_video_capture_device_unittest.cc
diff --git a/media/capture/video/fake_video_capture_device_unittest.cc b/media/capture/video/fake_video_capture_device_unittest.cc
index e63e6b3309e05a7cdae2c372352c9143b23fa4e9..fa653ba7288ef6b009f5ceaeaac2e71be626bca0 100644
--- a/media/capture/video/fake_video_capture_device_unittest.cc
+++ b/media/capture/video/fake_video_capture_device_unittest.cc
@@ -96,9 +96,8 @@ class MockClient : public VideoCaptureDevice::Client {
base::TimeDelta timestamp) {
frame_cb_.Run(frame_format);
}
- void OnIncomingCapturedVideoFrame(
- std::unique_ptr<Buffer> buffer,
- const scoped_refptr<media::VideoFrame>& frame) {
+ void OnIncomingCapturedVideoFrame(std::unique_ptr<Buffer> buffer,
+ scoped_refptr<media::VideoFrame> frame) {
VideoCaptureFormat format(frame->natural_size(), 30.0,
PIXEL_FORMAT_I420);
frame_cb_.Run(format);

Powered by Google App Engine
This is Rietveld 408576698