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

Unified Diff: cc/test/render_pass_test_utils.cc

Issue 2773103002: cc: Unify all sources of color space for YUVVideoDrawQuad (Closed)
Patch Set: Created 3 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
« no previous file with comments | « cc/resources/video_resource_updater.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/render_pass_test_utils.cc
diff --git a/cc/test/render_pass_test_utils.cc b/cc/test/render_pass_test_utils.cc
index f550fcb402d2449ecf49fdb4b40bdaba2586fadc..fc27e0daf861994a4144439bc4290cc110b72ea0 100644
--- a/cc/test/render_pass_test_utils.cc
+++ b/cc/test/render_pass_test_utils.cc
@@ -241,7 +241,6 @@ void AddOneOfEveryQuadType(RenderPass* to_pass,
resource_provider->best_texture_format(), gfx::ColorSpace());
resource_provider->AllocateForTesting(plane_resources[i]);
}
- YUVVideoDrawQuad::ColorSpace color_space = YUVVideoDrawQuad::REC_601;
YUVVideoDrawQuad* yuv_quad =
to_pass->CreateAndAppendDrawQuad<YUVVideoDrawQuad>();
@@ -249,8 +248,7 @@ void AddOneOfEveryQuadType(RenderPass* to_pass,
gfx::RectF(.0f, .0f, 100.0f, 100.0f),
gfx::RectF(.0f, .0f, 50.0f, 50.0f), gfx::Size(100, 100),
gfx::Size(50, 50), plane_resources[0], plane_resources[1],
- plane_resources[2], plane_resources[3], color_space,
- gfx::ColorSpace::CreateJpeg(), 0.0, 1.0, 8);
+ plane_resources[2], plane_resources[3], 0.0, 1.0, 8);
}
} // namespace cc
« no previous file with comments | « cc/resources/video_resource_updater.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698