| Index: content/browser/media/capture/web_contents_video_capture_device_unittest.cc
|
| diff --git a/content/browser/media/capture/web_contents_video_capture_device_unittest.cc b/content/browser/media/capture/web_contents_video_capture_device_unittest.cc
|
| index 10d8c064b033b8ff3c13b22e3a1e7acd863500fa..29fa5a23c8cf1c85374014cd03e809127f7824e9 100644
|
| --- a/content/browser/media/capture/web_contents_video_capture_device_unittest.cc
|
| +++ b/content/browser/media/capture/web_contents_video_capture_device_unittest.cc
|
| @@ -336,14 +336,11 @@ class StubClient : public media::VideoCaptureDevice::Client {
|
| }
|
|
|
| scoped_refptr<media::VideoCaptureDevice::Client::Buffer> ReserveOutputBuffer(
|
| - media::VideoFrame::Format format,
|
| - const gfx::Size& dimensions) override {
|
| - CHECK_EQ(format, media::VideoFrame::I420);
|
| - const size_t frame_bytes =
|
| - media::VideoFrame::AllocationSize(media::VideoFrame::I420, dimensions);
|
| + const media::VideoCaptureFormat& format) override {
|
| + CHECK_EQ(format.pixel_format, media::PIXEL_FORMAT_I420);
|
| int buffer_id_to_drop = VideoCaptureBufferPool::kInvalidId; // Ignored.
|
| int buffer_id =
|
| - buffer_pool_->ReserveForProducer(frame_bytes, &buffer_id_to_drop);
|
| + buffer_pool_->ReserveForProducer(format, &buffer_id_to_drop);
|
| if (buffer_id == VideoCaptureBufferPool::kInvalidId)
|
| return NULL;
|
| void* data;
|
|
|