| Index: content/browser/compositor/gl_helper_unittest.cc
|
| diff --git a/content/browser/compositor/gl_helper_unittest.cc b/content/browser/compositor/gl_helper_unittest.cc
|
| index 05f3f6f6c95cb389ace99bd97573b128e1e52e3c..a4234261ace6b760a4256493d859e1cf58c620b5 100644
|
| --- a/content/browser/compositor/gl_helper_unittest.cc
|
| +++ b/content/browser/compositor/gl_helper_unittest.cc
|
| @@ -35,6 +35,7 @@
|
| #include "gpu/command_buffer/client/gl_in_process_context.h"
|
| #include "gpu/command_buffer/client/gles2_implementation.h"
|
| #include "media/base/video_frame.h"
|
| +#include "media/base/video_util.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
| #include "third_party/skia/include/core/SkBitmap.h"
|
| #include "third_party/skia/include/core/SkTypes.h"
|
| @@ -1330,9 +1331,19 @@ class GLHelperTest : public testing::Test {
|
| base::TimeDelta::FromSeconds(0));
|
|
|
| base::RunLoop run_loop;
|
| - yuv_reader->ReadbackYUV(mailbox, sync_token, output_frame.get(),
|
| + yuv_reader->ReadbackYUV(mailbox, sync_token, output_frame->visible_rect(),
|
| + output_frame->stride(media::VideoFrame::kYPlane),
|
| + output_frame->data(media::VideoFrame::kYPlane),
|
| + output_frame->stride(media::VideoFrame::kUPlane),
|
| + output_frame->data(media::VideoFrame::kUPlane),
|
| + output_frame->stride(media::VideoFrame::kVPlane),
|
| + output_frame->data(media::VideoFrame::kVPlane),
|
| gfx::Point(xmargin, ymargin),
|
| base::Bind(&callcallback, run_loop.QuitClosure()));
|
| +
|
| + const gfx::Rect paste_rect(gfx::Point(xmargin, ymargin),
|
| + gfx::Size(xsize, ysize));
|
| + media::LetterboxYUV(output_frame.get(), paste_rect);
|
| run_loop.Run();
|
|
|
| if (flip) {
|
|
|