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

Unified Diff: cc/trees/layer_tree_host_unittest_video.cc

Issue 388643002: Rotation into Video Layer + Content Transform (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | « cc/test/layer_test_common.h ('k') | content/browser/media/media_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..1e686e9154fdcadd94587fb30d56f4776cc59508 100644
--- a/cc/trees/layer_tree_host_unittest_video.cc
+++ b/cc/trees/layer_tree_host_unittest_video.cc
@@ -30,7 +30,8 @@ class LayerTreeHostVideoTestSetNeedsDisplay
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, 3));
+ video->set_video_rotation(media::VIDEO_ROTATION_90);
video->SetIsDrawable(true);
root->AddChild(video);
@@ -60,7 +61,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(8.f, 6.f, 6.f, 6.f).ToString(),
enne (OOO) 2014/07/25 17:55:13 Does this actually pass? I wouldn't expect the dam
damage_rect.ToString());
EndTest();
break;
« no previous file with comments | « cc/test/layer_test_common.h ('k') | content/browser/media/media_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698