| 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 b560359f237a057338e872d3e9a599b4fb275424..c0ae821556deecad1a421e405a4176af538626a6 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
|
| @@ -348,12 +348,14 @@ class StubClient : public media::VideoCaptureDevice::Client {
|
| MOCK_METHOD0(DoOnIncomingCapturedBuffer, void(void));
|
|
|
| scoped_ptr<media::VideoCaptureDevice::Client::Buffer> ReserveOutputBuffer(
|
| - media::VideoPixelFormat format,
|
| - const gfx::Size& dimensions) override {
|
| - CHECK_EQ(format, media::PIXEL_FORMAT_I420);
|
| + const media::VideoCaptureFormat& frame_format) override {
|
| + CHECK_EQ(frame_format.pixel_format, media::PIXEL_FORMAT_I420);
|
| int buffer_id_to_drop = VideoCaptureBufferPool::kInvalidId; // Ignored.
|
| - int buffer_id = buffer_pool_->ReserveForProducer(format, dimensions,
|
| - &buffer_id_to_drop);
|
| + int buffer_id = buffer_pool_->ReserveForProducer(
|
| + frame_format.pixel_format,
|
| + frame_format.pixel_storage,
|
| + frame_format.frame_size,
|
| + &buffer_id_to_drop);
|
| if (buffer_id == VideoCaptureBufferPool::kInvalidId)
|
| return NULL;
|
|
|
|
|