| Index: content/common/gpu/media/video_encode_accelerator_unittest.cc
|
| diff --git a/content/common/gpu/media/video_encode_accelerator_unittest.cc b/content/common/gpu/media/video_encode_accelerator_unittest.cc
|
| index d1f68000cf9432d89b53a7e037afebe61d75d838..5040ca2464586eee3926369ea14c60ed947a0eda 100644
|
| --- a/content/common/gpu/media/video_encode_accelerator_unittest.cc
|
| +++ b/content/common/gpu/media/video_encode_accelerator_unittest.cc
|
| @@ -1316,14 +1316,18 @@ scoped_refptr<media::VideoFrame> VEAClient::CreateFrame(off_t position) {
|
| uint8* frame_data_v = frame_data_u + test_stream_->aligned_plane_size[1];
|
| CHECK_GT(current_framerate_, 0U);
|
|
|
| - return media::VideoFrame::WrapExternalYuvData(
|
| - kInputFormat, input_coded_size_, gfx::Rect(test_stream_->visible_size),
|
| - test_stream_->visible_size, input_coded_size_.width(),
|
| - input_coded_size_.width() / 2, input_coded_size_.width() / 2,
|
| - frame_data_y, frame_data_u, frame_data_v,
|
| - base::TimeDelta().FromMilliseconds(next_input_id_ *
|
| - base::Time::kMillisecondsPerSecond /
|
| - current_framerate_));
|
| + scoped_refptr<media::VideoFrame> video_frame =
|
| + media::VideoFrame::WrapExternalYuvData(
|
| + kInputFormat, input_coded_size_,
|
| + gfx::Rect(test_stream_->visible_size), test_stream_->visible_size,
|
| + input_coded_size_.width(), input_coded_size_.width() / 2,
|
| + input_coded_size_.width() / 2, frame_data_y, frame_data_u,
|
| + frame_data_v,
|
| + base::TimeDelta().FromMilliseconds(
|
| + next_input_id_ * base::Time::kMillisecondsPerSecond /
|
| + current_framerate_));
|
| + CHECK(video_frame);
|
| + return video_frame;
|
| }
|
|
|
| scoped_refptr<media::VideoFrame> VEAClient::PrepareInputFrame(off_t position,
|
| @@ -1332,6 +1336,7 @@ scoped_refptr<media::VideoFrame> VEAClient::PrepareInputFrame(off_t position,
|
| test_stream_->mapped_aligned_in_file.length());
|
|
|
| scoped_refptr<media::VideoFrame> frame = CreateFrame(position);
|
| + CHECK(frame);
|
| frame->AddDestructionObserver(
|
| media::BindToCurrentLoop(
|
| base::Bind(&VEAClient::InputNoLongerNeededCallback,
|
|
|