| Index: media/video/capture/fake_video_capture_device.cc
 | 
| diff --git a/media/video/capture/fake_video_capture_device.cc b/media/video/capture/fake_video_capture_device.cc
 | 
| index 665f728b3c66ffb4fbda40f1cc1c6f5479740364..6bf83a6460fce496f8fe51f03c3449e04e8b5645 100644
 | 
| --- a/media/video/capture/fake_video_capture_device.cc
 | 
| +++ b/media/video/capture/fake_video_capture_device.cc
 | 
| @@ -91,8 +91,9 @@ void FakeVideoCaptureDevice::Allocate(
 | 
|      capture_format_.frame_rate = 30;
 | 
|    }
 | 
|  
 | 
| -  size_t fake_frame_size =
 | 
| -      capture_format_.width * capture_format_.height * 3 / 2;
 | 
| +  const size_t fake_frame_size = VideoFrame::AllocationSize(
 | 
| +      VideoFrame::I420,
 | 
| +      gfx::Size(capture_format_.width, capture_format_.height));
 | 
|    fake_frame_.reset(new uint8[fake_frame_size]);
 | 
|  
 | 
|    state_ = kAllocated;
 | 
| @@ -107,8 +108,9 @@ void FakeVideoCaptureDevice::Reallocate() {
 | 
|    DVLOG(3) << "Reallocating FakeVideoCaptureDevice, new capture resolution ("
 | 
|             << capture_format_.width << "x" << capture_format_.height << ")";
 | 
|  
 | 
| -  size_t fake_frame_size =
 | 
| -      capture_format_.width * capture_format_.height * 3 / 2;
 | 
| +  const size_t fake_frame_size = VideoFrame::AllocationSize(
 | 
| +      VideoFrame::I420,
 | 
| +      gfx::Size(capture_format_.width, capture_format_.height));
 | 
|    fake_frame_.reset(new uint8[fake_frame_size]);
 | 
|  
 | 
|    observer_->OnFrameInfoChanged(capture_format_);
 | 
| @@ -151,7 +153,9 @@ void FakeVideoCaptureDevice::OnCaptureTask() {
 | 
|      return;
 | 
|    }
 | 
|  
 | 
| -  int frame_size = capture_format_.width * capture_format_.height * 3 / 2;
 | 
| +  const size_t frame_size = VideoFrame::AllocationSize(
 | 
| +      VideoFrame::I420,
 | 
| +      gfx::Size(capture_format_.width, capture_format_.height));
 | 
|    memset(fake_frame_.get(), 0, frame_size);
 | 
|  
 | 
|    SkBitmap bitmap;
 | 
| 
 |