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

Unified Diff: mojo/converters/surfaces/surfaces_type_converters.cc

Issue 881963002: Clamp YUV videos to their visible size in the shader (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: danakj review, build fix Created 5 years, 11 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 | « content/common/cc_messages_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/converters/surfaces/surfaces_type_converters.cc
diff --git a/mojo/converters/surfaces/surfaces_type_converters.cc b/mojo/converters/surfaces/surfaces_type_converters.cc
index 863e9c5445dbc825c4f54d4f9ad8dd844ed6ede2..3c209f5aa11ba8bf4ccc1b7c3e9dc7dbb3b852d3 100644
--- a/mojo/converters/surfaces/surfaces_type_converters.cc
+++ b/mojo/converters/surfaces/surfaces_type_converters.cc
@@ -175,6 +175,7 @@ bool ConvertDrawQuad(const QuadPtr& input,
input->visible_rect.To<gfx::Rect>(),
input->needs_blending,
yuv_state->tex_coord_rect.To<gfx::RectF>(),
+ gfx::Size(), // TODO(jamesr): texture size
yuv_state->y_plane_resource_id,
yuv_state->u_plane_resource_id,
yuv_state->v_plane_resource_id,
« no previous file with comments | « content/common/cc_messages_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698