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

Unified Diff: cc/draw_quad_unittest.cc

Issue 11269017: Plumb through cropped output size for VideoFrame (Closed) Base URL: https://git.chromium.org/git/chromium/src@git-svn
Patch Set: Found the windows failure, and fixed it. Thanks akalin@ Created 8 years, 1 month 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 | « no previous file | cc/gl_renderer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/draw_quad_unittest.cc
diff --git a/cc/draw_quad_unittest.cc b/cc/draw_quad_unittest.cc
index 2d7055ed88683eb20042ada241e52ab9f915b7c4..a73bbecbe9a3f4ebbd0673ad9aee76be86e9dbc7 100644
--- a/cc/draw_quad_unittest.cc
+++ b/cc/draw_quad_unittest.cc
@@ -278,36 +278,32 @@ TEST(DrawQuadTest, copyTileDrawQuad)
TEST(DrawQuadTest, copyYUVVideoDrawQuad)
{
+ gfx::SizeF texScale(0.75, 0.5);
VideoLayerImpl::FramePlane yPlane;
yPlane.resourceId = 45;
yPlane.size = gfx::Size(34, 23);
yPlane.format = 8;
- yPlane.visibleSize = gfx::Size(623, 235);
VideoLayerImpl::FramePlane uPlane;
uPlane.resourceId = 532;
uPlane.size = gfx::Size(134, 16);
uPlane.format = 2;
- uPlane.visibleSize = gfx::Size(126, 27);
VideoLayerImpl::FramePlane vPlane;
vPlane.resourceId = 4;
vPlane.size = gfx::Size(456, 486);
vPlane.format = 46;
- vPlane.visibleSize = gfx::Size(19, 45);
CREATE_SHARED_STATE();
- CREATE_QUAD_3(YUVVideoDrawQuad, yPlane, uPlane, vPlane);
+ CREATE_QUAD_4(YUVVideoDrawQuad, texScale, yPlane, uPlane, vPlane);
+ EXPECT_EQ(texScale, copyQuad->texScale());
EXPECT_EQ(yPlane.resourceId, copyQuad->yPlane().resourceId);
EXPECT_EQ(yPlane.size, copyQuad->yPlane().size);
EXPECT_EQ(yPlane.format, copyQuad->yPlane().format);
- EXPECT_EQ(yPlane.visibleSize, copyQuad->yPlane().visibleSize);
EXPECT_EQ(uPlane.resourceId, copyQuad->uPlane().resourceId);
EXPECT_EQ(uPlane.size, copyQuad->uPlane().size);
EXPECT_EQ(uPlane.format, copyQuad->uPlane().format);
- EXPECT_EQ(uPlane.visibleSize, copyQuad->uPlane().visibleSize);
EXPECT_EQ(vPlane.resourceId, copyQuad->vPlane().resourceId);
EXPECT_EQ(vPlane.size, copyQuad->vPlane().size);
EXPECT_EQ(vPlane.format, copyQuad->vPlane().format);
- EXPECT_EQ(vPlane.visibleSize, copyQuad->vPlane().visibleSize);
}
} // anonymous namespace
« no previous file with comments | « no previous file | cc/gl_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698