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

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

Issue 2566983007: [Mojo Video Capture] Replace method OnIncomingCapturedVideoFrame with OnIncomingCapturedBufferExt (Closed)
Patch Set: mcasas comments Created 4 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_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 c9bbae90f3372440cb93afc2c2722251a11ad8d6..21563c0fd9301cbdab0289b45bd938a5fa792ba7 100644
--- a/media/capture/video/fake_video_capture_device_unittest.cc
+++ b/media/capture/video/fake_video_capture_device_unittest.cc
@@ -101,11 +101,13 @@ class MockClient : public VideoCaptureDevice::Client {
base::TimeDelta timestamp) override {
frame_cb_.Run(format);
}
- void OnIncomingCapturedVideoFrame(
+ void OnIncomingCapturedBufferExt(
std::unique_ptr<Buffer> buffer,
- scoped_refptr<media::VideoFrame> frame) override {
- VideoCaptureFormat format(frame->natural_size(), 30.0,
- PIXEL_FORMAT_I420);
+ const VideoCaptureFormat& format,
+ base::TimeTicks reference_time,
+ base::TimeDelta timestamp,
+ gfx::Rect visible_rect,
+ const VideoFrameMetadata& additional_metadata) override {
frame_cb_.Run(format);
}
std::unique_ptr<Buffer> ResurrectLastOutputBuffer(
« no previous file with comments | « media/capture/content/thread_safe_capture_oracle.cc ('k') | media/capture/video/linux/v4l2_capture_delegate_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698