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

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: GetTextureMatrix should be the only available method 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..e20ea4292e15326137cad7d60603e716486472f6 100644
--- a/cc/output/shader.cc
+++ b/cc/output/shader.cc
@@ -751,8 +751,7 @@ std::string VertexShaderVideoTransform::GetShaderBody() {
return SHADER0([]() {
void main() {
gl_Position = matrix * a_position;
- v_texCoord =
- vec2(texMatrix * vec4(a_texCoord.x, 1.0 - a_texCoord.y, 0.0, 1.0));
+ v_texCoord = (texMatrix * vec4(a_texCoord.xy, 0.0, 1.0)).xy;
}
});
}

Powered by Google App Engine
This is Rietveld 408576698