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

Unified Diff: cc/test/render_pass_test_common.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: 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
Index: cc/test/render_pass_test_common.cc
diff --git a/cc/test/render_pass_test_common.cc b/cc/test/render_pass_test_common.cc
index 7237ce1099f92ae9911127eeb8c2598408dab39e..4b85e8aca86636b64b63cdcc15a025e5bfb86ad8 100644
--- a/cc/test/render_pass_test_common.cc
+++ b/cc/test/render_pass_test_common.cc
@@ -252,16 +252,10 @@ void TestRenderPass::AppendOneOfEveryQuadType(
YUVVideoDrawQuad::ColorSpace color_space = YUVVideoDrawQuad::REC_601;
YUVVideoDrawQuad* yuv_quad =
this->CreateAndAppendDrawQuad<YUVVideoDrawQuad>();
- yuv_quad->SetNew(shared_state2,
- rect,
- opaque_rect,
- visible_rect,
- gfx::RectF(0, 0, 100, 100),
- plane_resources[0],
- plane_resources[1],
- plane_resources[2],
- plane_resources[3],
- color_space);
+ yuv_quad->SetNew(shared_state2, rect, opaque_rect, visible_rect,
+ gfx::RectF(0, 0, 100, 100), gfx::SizeF(0.5f, 0.5f),
+ plane_resources[0], plane_resources[1], plane_resources[2],
+ plane_resources[3], color_space);
}
} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698