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

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: miu@s nits 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
« no previous file with comments | « media/video/capture/fake_video_capture_device.cc ('k') | media/video/capture/video_capture_device.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..e413c5ed4d7062636bac181d4dfa8b5b639ab319 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,
+ scoped_refptr<Buffer> ReserveOutputBuffer(media::VideoPixelFormat format,
const gfx::Size& dimensions) {
- EXPECT_EQ(format, VideoFrame::I420);
+ EXPECT_EQ(format, PIXEL_FORMAT_I420);
EXPECT_GT(dimensions.GetArea(), 0);
- return make_scoped_refptr(
- new MockBuffer(0, VideoFrame::AllocationSize(format, dimensions)));
+ return make_scoped_refptr(new MockBuffer(0, dimensions.GetArea() * 3 / 2));
}
void OnIncomingCapturedVideoFrame(
const scoped_refptr<Buffer>& buffer,
« no previous file with comments | « media/video/capture/fake_video_capture_device.cc ('k') | media/video/capture/video_capture_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698