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

Unified Diff: content/common/cc_messages_unittest.cc

Issue 12157002: Adding YUVA support for enabling Alpha Playback (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressing comments Created 7 years, 8 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
« cc/output/gl_renderer.cc ('K') | « content/common/cc_messages.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/cc_messages_unittest.cc
diff --git a/content/common/cc_messages_unittest.cc b/content/common/cc_messages_unittest.cc
index c66546716ba47c5f25aca15426f192f22e530bd2..cc6151fcf4b79dd2093999df25243d5f4f02d96c 100644
--- a/content/common/cc_messages_unittest.cc
+++ b/content/common/cc_messages_unittest.cc
@@ -176,6 +176,9 @@ class CCMessagesTest : public testing::Test {
EXPECT_EQ(a->v_plane.resource_id, b->v_plane.resource_id);
EXPECT_EQ(a->v_plane.size.ToString(), b->v_plane.size.ToString());
EXPECT_EQ(a->v_plane.format, b->v_plane.format);
+ EXPECT_EQ(a->a_plane.resource_id, b->a_plane.resource_id);
+ EXPECT_EQ(a->a_plane.size.ToString(), b->a_plane.size.ToString());
+ EXPECT_EQ(a->a_plane.format, b->a_plane.format);
}
void Compare(const TransferableResource& a, const TransferableResource& b) {
@@ -235,6 +238,11 @@ TEST_F(CCMessagesTest, AllQuads) {
arbitrary_plane3.size = arbitrary_size3;
arbitrary_plane3.format = arbitrary_int;
+ VideoLayerImpl::FramePlane arbitrary_plane4;
+ arbitrary_plane4.resource_id = arbitrary_resourceid;
+ arbitrary_plane4.size = arbitrary_size3;
+ arbitrary_plane4.format = arbitrary_int;
+
WebFilterOperations arbitrary_filters1;
arbitrary_filters1.append(WebFilterOperation::createGrayscaleFilter(
arbitrary_float1));
@@ -386,9 +394,10 @@ TEST_F(CCMessagesTest, AllQuads) {
arbitrary_rect3,
arbitrary_bool1,
arbitrary_sizef1,
- arbitrary_plane1,
- arbitrary_plane2,
- arbitrary_plane3);
+ &arbitrary_plane1,
+ &arbitrary_plane2,
+ &arbitrary_plane3,
+ &arbitrary_plane4);
scoped_ptr<DrawQuad> yuvvideo_cmp = yuvvideo_in->Copy(
yuvvideo_in->shared_quad_state);
« cc/output/gl_renderer.cc ('K') | « content/common/cc_messages.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698