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

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 [If you wait by the river long enough, the bodies of your gyp files will float by] Created 4 years, 4 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
« no previous file with comments | « cc/output/gl_renderer.cc ('k') | gpu/GLES2/extensions/CHROMIUM/CHROMIUM_stream_texture_matrix.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/shader.cc
diff --git a/cc/output/shader.cc b/cc/output/shader.cc
index fb12506fab3c6a5b82f087f7575297d358005a9d..9b54c544e4894cecd83ca73afbfd417b5aff7940 100644
--- a/cc/output/shader.cc
+++ b/cc/output/shader.cc
@@ -752,8 +752,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;
}
});
}
« no previous file with comments | « cc/output/gl_renderer.cc ('k') | gpu/GLES2/extensions/CHROMIUM/CHROMIUM_stream_texture_matrix.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698