| Index: media/tools/shader_bench/gpu_color_painter.cc
|
| diff --git a/media/tools/shader_bench/gpu_color_painter.cc b/media/tools/shader_bench/gpu_color_painter.cc
|
| index a408de2013ddb92afdcfa28d16f923dccd3dce7d..17155ee009dec5f1243d5b085dfe6a5fcba57da3 100644
|
| --- a/media/tools/shader_bench/gpu_color_painter.cc
|
| +++ b/media/tools/shader_bench/gpu_color_painter.cc
|
| @@ -104,8 +104,9 @@ void GPUColorWithLuminancePainter::Initialize(int width, int height) {
|
|
|
| void GPUColorWithLuminancePainter::Paint(
|
| scoped_refptr<media::VideoFrame> video_frame) {
|
| - int width = video_frame->data_size().width();
|
| - int height = video_frame->data_size().height();
|
| + // Not accounting for x/y offset presently.
|
| + int width = video_frame->visible_rect().width();
|
| + int height = video_frame->visible_rect().height();
|
| for (unsigned int i = 0; i < kNumYUVPlanes; ++i) {
|
| unsigned int plane_width =
|
| (i == media::VideoFrame::kYPlane) ? width : width / 2;
|
|
|