| 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 03fafc054c9032f402a3ea46cd650b8fe22d0654..0a39e884e9924dcbb3ecdb0a32d26e3fbe8e5bb2 100644
|
| --- a/cc/layers/video_layer_impl_unittest.cc
|
| +++ b/cc/layers/video_layer_impl_unittest.cc
|
| @@ -122,10 +122,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);
|
| }
|
| @@ -158,10 +158,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);
|
| }
|
| @@ -194,10 +194,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);
|
| }
|
| @@ -230,10 +230,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);
|
| }
|
|
|