| 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 2c81d2b80f1f183e5fbf7ac296c13f565f300949..3811024b407c098e4fd935c8f45d6c691f4e36e0 100644
|
| --- a/media/tools/shader_bench/gpu_color_painter.cc
|
| +++ b/media/tools/shader_bench/gpu_color_painter.cc
|
| @@ -106,9 +106,9 @@ void GPUColorWithLuminancePainter::Paint(
|
| scoped_refptr<media::VideoFrame> video_frame) {
|
| for (unsigned int i = 0; i < kNumYUVPlanes; ++i) {
|
| unsigned int width = (i == media::VideoFrame::kYPlane) ?
|
| - video_frame->width() : video_frame->width() / 2;
|
| + video_frame->size().width() : video_frame->size().width() / 2;
|
| unsigned int height = (i == media::VideoFrame::kYPlane) ?
|
| - video_frame->height() : video_frame->height() / 2;
|
| + video_frame->size().height() : video_frame->size().height() / 2;
|
| glBindTexture(GL_TEXTURE_2D, textures_[i]);
|
| glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, width, height,
|
| GL_LUMINANCE, GL_UNSIGNED_BYTE, video_frame->data(i));
|
|
|