| Index: cc/gl_renderer.cc
|
| diff --git a/cc/gl_renderer.cc b/cc/gl_renderer.cc
|
| index 241bcfe246709b8d72ae27e9233dd55eaab4ac8e..b72f08d2e67024d72e1a5817d72a01643f354005 100644
|
| --- a/cc/gl_renderer.cc
|
| +++ b/cc/gl_renderer.cc
|
| @@ -867,12 +867,7 @@ void GLRenderer::drawYUVVideoQuad(const DrawingFrame& frame, const YUVVideoDrawQ
|
|
|
| GLC(context(), context()->useProgram(program->program()));
|
|
|
| - float yWidthScaleFactor = static_cast<float>(yPlane.visibleSize.width()) / yPlane.size.width();
|
| - // Arbitrarily take the u sizes because u and v dimensions are identical.
|
| - float uvWidthScaleFactor = static_cast<float>(uPlane.visibleSize.width()) / uPlane.size.width();
|
| - GLC(context(), context()->uniform1f(program->vertexShader().yWidthScaleFactorLocation(), yWidthScaleFactor));
|
| - GLC(context(), context()->uniform1f(program->vertexShader().uvWidthScaleFactorLocation(), uvWidthScaleFactor));
|
| -
|
| + GLC(context(), context()->uniform2f(program->vertexShader().texScaleLocation(), quad->texScale().width(), quad->texScale().height()));
|
| GLC(context(), context()->uniform1i(program->fragmentShader().yTextureLocation(), 1));
|
| GLC(context(), context()->uniform1i(program->fragmentShader().uTextureLocation(), 2));
|
| GLC(context(), context()->uniform1i(program->fragmentShader().vTextureLocation(), 3));
|
|
|