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

Unified Diff: content/common/cc_messages_unittest.cc

Issue 1131253003: cc: Add support for non-2D texture targets to YUVVideoQuad. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: s/jamesr/sky/ Created 5 years, 7 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 | « content/common/cc_messages.h ('k') | mojo/converters/surfaces/surfaces_type_converters.cc » ('j') | 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 fa4d7fb0de485dfc146208eb669e8b7b4fdb9c5a..d0c13d7590e8d7dd619fbae3df2c98920237a4bf 100644
--- a/content/common/cc_messages_unittest.cc
+++ b/content/common/cc_messages_unittest.cc
@@ -198,7 +198,8 @@ class CCMessagesTest : public testing::Test {
}
void Compare(const YUVVideoDrawQuad* a, const YUVVideoDrawQuad* b) {
- EXPECT_EQ(a->tex_coord_rect, b->tex_coord_rect);
+ EXPECT_EQ(a->ya_tex_coord_rect, b->ya_tex_coord_rect);
+ EXPECT_EQ(a->uv_tex_coord_rect, b->uv_tex_coord_rect);
EXPECT_EQ(a->ya_tex_size, b->ya_tex_size);
EXPECT_EQ(a->uv_tex_size, b->uv_tex_size);
EXPECT_EQ(a->y_plane_resource_id, b->y_plane_resource_id);
@@ -247,6 +248,7 @@ TEST_F(CCMessagesTest, AllQuads) {
gfx::Size arbitrary_size2(3, 99);
gfx::Size arbitrary_size3(75, 1281);
gfx::RectF arbitrary_rectf1(4.2f, -922.1f, 15.6f, 29.5f);
+ gfx::RectF arbitrary_rectf2(2.1f, -411.05f, 7.8f, 14.75f);
gfx::SizeF arbitrary_sizef1(15.2f, 104.6f);
gfx::PointF arbitrary_pointf1(31.4f, 15.9f);
gfx::PointF arbitrary_pointf2(26.5f, -35.8f);
@@ -446,19 +448,12 @@ TEST_F(CCMessagesTest, AllQuads) {
YUVVideoDrawQuad* yuvvideo_in =
pass_in->CreateAndAppendDrawQuad<YUVVideoDrawQuad>();
- yuvvideo_in->SetAll(shared_state3_in,
- arbitrary_rect1,
- arbitrary_rect2_inside_rect1,
- arbitrary_rect1_inside_rect1,
- arbitrary_bool1,
- arbitrary_rectf1,
- arbitrary_size1,
- arbitrary_size2,
- arbitrary_resourceid1,
- arbitrary_resourceid2,
- arbitrary_resourceid3,
- arbitrary_resourceid4,
- arbitrary_color_space);
+ yuvvideo_in->SetAll(
+ shared_state3_in, arbitrary_rect1, arbitrary_rect2_inside_rect1,
+ arbitrary_rect1_inside_rect1, arbitrary_bool1, arbitrary_rectf1,
+ arbitrary_rectf2, arbitrary_size1, arbitrary_size2, arbitrary_resourceid1,
+ arbitrary_resourceid2, arbitrary_resourceid3, arbitrary_resourceid4,
+ arbitrary_color_space);
pass_cmp->CopyFromAndAppendDrawQuad(yuvvideo_in,
yuvvideo_in->shared_quad_state);
« no previous file with comments | « content/common/cc_messages.h ('k') | mojo/converters/surfaces/surfaces_type_converters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698