Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(675)

Unified Diff: cc/output/shader.cc

Issue 1818073002: Always apply UniformMatrix4fvStreamTextureMatrixCHROMIUM matrix argument. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
}
});
}

Powered by Google App Engine
This is Rietveld 408576698