Chromium Code Reviews| Index: cc/output/shader.cc |
| diff --git a/cc/output/shader.cc b/cc/output/shader.cc |
| index 75cac6cbfd61f1c35250ab96e70b822eb621a04a..a9f042b8bd306f92ff32fcf8f9dcd54bfd773235 100644 |
| --- a/cc/output/shader.cc |
| +++ b/cc/output/shader.cc |
| @@ -752,7 +752,8 @@ std::string VertexShaderVideoTransform::GetShaderBody() { |
| void main() { |
| gl_Position = matrix * a_position; |
| v_texCoord = |
| - vec2(texMatrix * vec4(a_texCoord.x, 1.0 - a_texCoord.y, 0.0, 1.0)); |
| + vec2(0.0, 1.0) + |
| + vec2(1.0, -1.0) * (texMatrix * vec4(a_texCoord.xy, 0.0, 1.0)).xy; |
|
liberato (no reviews please)
2016/03/31 15:03:16
is this different?
Tobias Sargeant
2016/04/01 11:59:10
It was different (y flip before matrix multiplicat
|
| } |
| }); |
| } |