| Index: cc/layers/video_layer_impl_unittest.cc
|
| diff --git a/cc/layers/video_layer_impl_unittest.cc b/cc/layers/video_layer_impl_unittest.cc
|
| index 113f2ad90c55f9b617f4edcee657cc26d7b03837..2fde4957c267d1a9a4dee67f982210f81b7e9f71 100644
|
| --- a/cc/layers/video_layer_impl_unittest.cc
|
| +++ b/cc/layers/video_layer_impl_unittest.cc
|
| @@ -119,10 +119,10 @@ TEST(VideoLayerImplTest, Rotated0) {
|
|
|
| EXPECT_EQ(1u, impl.quad_list().size());
|
|
|
| - gfx::Point3F p1(0, impl.quad_list()[0]->rect.height(), 0);
|
| - gfx::Point3F p2(impl.quad_list()[0]->rect.width(), 0, 0);
|
| - impl.quad_list()[0]->quadTransform().TransformPoint(&p1);
|
| - impl.quad_list()[0]->quadTransform().TransformPoint(&p2);
|
| + gfx::Point3F p1(0, impl.quad_list().front()->rect.height(), 0);
|
| + gfx::Point3F p2(impl.quad_list().front()->rect.width(), 0, 0);
|
| + impl.quad_list().front()->quadTransform().TransformPoint(&p1);
|
| + impl.quad_list().front()->quadTransform().TransformPoint(&p2);
|
| EXPECT_EQ(gfx::Point3F(0, 50, 0), p1);
|
| EXPECT_EQ(gfx::Point3F(100, 0, 0), p2);
|
| }
|
| @@ -155,10 +155,10 @@ TEST(VideoLayerImplTest, Rotated90) {
|
|
|
| EXPECT_EQ(1u, impl.quad_list().size());
|
|
|
| - gfx::Point3F p1(0, impl.quad_list()[0]->rect.height(), 0);
|
| - gfx::Point3F p2(impl.quad_list()[0]->rect.width(), 0, 0);
|
| - impl.quad_list()[0]->quadTransform().TransformPoint(&p1);
|
| - impl.quad_list()[0]->quadTransform().TransformPoint(&p2);
|
| + gfx::Point3F p1(0, impl.quad_list().front()->rect.height(), 0);
|
| + gfx::Point3F p2(impl.quad_list().front()->rect.width(), 0, 0);
|
| + impl.quad_list().front()->quadTransform().TransformPoint(&p1);
|
| + impl.quad_list().front()->quadTransform().TransformPoint(&p2);
|
| EXPECT_EQ(gfx::Point3F(0, 0, 0), p1);
|
| EXPECT_EQ(gfx::Point3F(100, 50, 0), p2);
|
| }
|
| @@ -191,10 +191,10 @@ TEST(VideoLayerImplTest, Rotated180) {
|
|
|
| EXPECT_EQ(1u, impl.quad_list().size());
|
|
|
| - gfx::Point3F p1(0, impl.quad_list()[0]->rect.height(), 0);
|
| - gfx::Point3F p2(impl.quad_list()[0]->rect.width(), 0, 0);
|
| - impl.quad_list()[0]->quadTransform().TransformPoint(&p1);
|
| - impl.quad_list()[0]->quadTransform().TransformPoint(&p2);
|
| + gfx::Point3F p1(0, impl.quad_list().front()->rect.height(), 0);
|
| + gfx::Point3F p2(impl.quad_list().front()->rect.width(), 0, 0);
|
| + impl.quad_list().front()->quadTransform().TransformPoint(&p1);
|
| + impl.quad_list().front()->quadTransform().TransformPoint(&p2);
|
| EXPECT_EQ(gfx::Point3F(100, 0, 0), p1);
|
| EXPECT_EQ(gfx::Point3F(0, 50, 0), p2);
|
| }
|
| @@ -227,10 +227,10 @@ TEST(VideoLayerImplTest, Rotated270) {
|
|
|
| EXPECT_EQ(1u, impl.quad_list().size());
|
|
|
| - gfx::Point3F p1(0, impl.quad_list()[0]->rect.height(), 0);
|
| - gfx::Point3F p2(impl.quad_list()[0]->rect.width(), 0, 0);
|
| - impl.quad_list()[0]->quadTransform().TransformPoint(&p1);
|
| - impl.quad_list()[0]->quadTransform().TransformPoint(&p2);
|
| + gfx::Point3F p1(0, impl.quad_list().front()->rect.height(), 0);
|
| + gfx::Point3F p2(impl.quad_list().front()->rect.width(), 0, 0);
|
| + impl.quad_list().front()->quadTransform().TransformPoint(&p1);
|
| + impl.quad_list().front()->quadTransform().TransformPoint(&p2);
|
| EXPECT_EQ(gfx::Point3F(100, 50, 0), p1);
|
| EXPECT_EQ(gfx::Point3F(0, 0, 0), p2);
|
| }
|
|
|