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

Unified Diff: cc/ipc/cc_param_traits_unittest.cc

Issue 2683763003: cc: make resource keep video buffer format for hardware overlay.
Patch Set: plumbing video format to ozone Created 3 years, 10 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/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 9f1ea9f3fbb3fc06b08c52fac422895123e1b469..49bb5e4676ed33c5b8e038397581277a56de2f75 100644
--- a/cc/ipc/cc_param_traits_unittest.cc
+++ b/cc/ipc/cc_param_traits_unittest.cc
@@ -162,6 +162,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);
}
@@ -255,6 +256,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;
@@ -372,7 +374,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);

Powered by Google App Engine
This is Rietveld 408576698