Chromium Code Reviews| Index: cc/trees/layer_tree_host_unittest_video.cc |
| diff --git a/cc/trees/layer_tree_host_unittest_video.cc b/cc/trees/layer_tree_host_unittest_video.cc |
| index 5484e4c9163ff252bc7f15a69b9e73e296128cf3..f1e37622e0ec17281f778c35d3dec14113f59d07 100644 |
| --- a/cc/trees/layer_tree_host_unittest_video.cc |
| +++ b/cc/trees/layer_tree_host_unittest_video.cc |
| @@ -27,10 +27,10 @@ class LayerTreeHostVideoTestSetNeedsDisplay |
| root->SetBounds(gfx::Size(10, 10)); |
| root->SetIsDrawable(true); |
| - scoped_refptr<VideoLayer> video = VideoLayer::Create( |
| - &video_frame_provider_); |
| + scoped_refptr<VideoLayer> video = |
| + VideoLayer::Create(&video_frame_provider_); |
| video->SetPosition(gfx::PointF(3.f, 3.f)); |
| - video->SetBounds(gfx::Size(4, 4)); |
| + video->SetBounds(gfx::Size(4, 5)); |
| video->SetIsDrawable(true); |
| root->AddChild(video); |
| @@ -60,7 +60,7 @@ class LayerTreeHostVideoTestSetNeedsDisplay |
| break; |
| case 1: |
| // Second frame the video layer is damaged. |
| - EXPECT_EQ(gfx::RectF(6.f, 6.f, 8.f, 8.f).ToString(), |
| + EXPECT_EQ(gfx::RectF(6.f, 6.f, 8.f, 10.f).ToString(), |
|
enne (OOO)
2014/07/22 21:10:40
Shouldn't the video be rotated here? I think this
|
| damage_rect.ToString()); |
| EndTest(); |
| break; |
| @@ -74,6 +74,8 @@ class LayerTreeHostVideoTestSetNeedsDisplay |
| VideoLayerImpl* video = static_cast<VideoLayerImpl*>( |
| host_impl->active_tree()->root_layer()->children()[0]); |
| + EXPECT_EQ(media::VIDEO_ROTATION_90, video->get_video_rotation()); |
| + |
| if (num_draws_ == 0) |
| video->SetNeedsRedraw(); |