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

Unified Diff: cc/ipc/cc_param_traits_unittest.cc

Issue 2684993005: (NotForReview) Enable YUV video overlay on Skylake ChromeOS.
Patch Set: rebase to ToT (Mar/27) 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/ipc/cc_param_traits_macros.h ('k') | cc/ipc/quads.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/ipc/cc_param_traits_unittest.cc
diff --git a/cc/ipc/cc_param_traits_unittest.cc b/cc/ipc/cc_param_traits_unittest.cc
index edd451d7fe3809cc7c021632174b4f937cac93cc..482766fa3588fa218be6a98534cb7741c0602ad7 100644
--- a/cc/ipc/cc_param_traits_unittest.cc
+++ b/cc/ipc/cc_param_traits_unittest.cc
@@ -164,6 +164,7 @@ class CCParamTraitsTest : public testing::Test {
void Compare(const StreamVideoDrawQuad* a, const StreamVideoDrawQuad* b) {
EXPECT_EQ(a->resource_id(), b->resource_id());
EXPECT_EQ(a->resource_size_in_pixels(), b->resource_size_in_pixels());
+ EXPECT_EQ(a->format, b->format);
EXPECT_EQ(a->matrix, b->matrix);
}
@@ -257,6 +258,7 @@ TEST_F(CCParamTraitsTest, AllQuads) {
gfx::PointF arbitrary_pointf2(26.5f, -35.8f);
gfx::Vector2dF arbitrary_vector2df1(16.2f, -85.1f);
gfx::Vector2dF arbitrary_vector2df2(-8.3f, 0.47f);
+ gfx::BufferFormat arbitrary_format = gfx::BufferFormat::YVU_420;
float arbitrary_float1 = 0.7f;
float arbitrary_float2 = 0.3f;
float arbitrary_float3 = 0.9f;
@@ -378,7 +380,7 @@ TEST_F(CCParamTraitsTest, AllQuads) {
streamvideo_in->SetAll(
shared_state3_in, arbitrary_rect2, arbitrary_rect2_inside_rect2,
arbitrary_rect1_inside_rect2, arbitrary_bool1, arbitrary_resourceid2,
- arbitrary_size1, arbitrary_matrix1);
+ arbitrary_size1, arbitrary_format, arbitrary_matrix1);
pass_cmp->CopyFromAndAppendDrawQuad(streamvideo_in,
streamvideo_in->shared_quad_state);
« no previous file with comments | « cc/ipc/cc_param_traits_macros.h ('k') | cc/ipc/quads.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698