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

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

Issue 1064703002: VideoCaptureBufferPool: Refactor to allow support of non-ShMem backed buffers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 months 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/video/capture/fake_video_capture_device_unittest.cc
diff --git a/media/video/capture/fake_video_capture_device_unittest.cc b/media/video/capture/fake_video_capture_device_unittest.cc
index 042fa7c8de9d94033bedba3641562596b9a723a8..dfc8a84734b07d7762a04357c94f33d3615191f4 100644
--- a/media/video/capture/fake_video_capture_device_unittest.cc
+++ b/media/video/capture/fake_video_capture_device_unittest.cc
@@ -75,12 +75,11 @@ class MockClient : public VideoCaptureDevice::Client {
}
// Virtual methods for capturing using Client's Buffers.
- scoped_refptr<Buffer> ReserveOutputBuffer(VideoFrame::Format format,
- const gfx::Size& dimensions) {
- EXPECT_EQ(format, VideoFrame::I420);
- EXPECT_GT(dimensions.GetArea(), 0);
+ scoped_refptr<Buffer> ReserveOutputBuffer(const VideoCaptureFormat& format) {
+ EXPECT_EQ(format.pixel_format, PIXEL_FORMAT_I420);
+ EXPECT_GT(format.frame_size.GetArea(), 0);
return make_scoped_refptr(
- new MockBuffer(0, VideoFrame::AllocationSize(format, dimensions)));
+ new MockBuffer(0, format.ImageAllocationSize()));
}
void OnIncomingCapturedVideoFrame(
const scoped_refptr<Buffer>& buffer,

Powered by Google App Engine
This is Rietveld 408576698