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

Unified Diff: cc/trees/layer_tree_host_unittest_animation.cc

Issue 1479883002: cc: Fix draw transform computation for non-drawn layers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove LayerImpl::draw_transform() Created 5 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
Index: cc/trees/layer_tree_host_unittest_animation.cc
diff --git a/cc/trees/layer_tree_host_unittest_animation.cc b/cc/trees/layer_tree_host_unittest_animation.cc
index d09234d562cb71aa9e194ef74548d6d48c3c860c..b6d8505e72d5bf23008c68a54c9d157f984042b3 100644
--- a/cc/trees/layer_tree_host_unittest_animation.cc
+++ b/cc/trees/layer_tree_host_unittest_animation.cc
@@ -930,7 +930,7 @@ class LayerTreeHostAnimationTestPendingTreeAnimatesFirstCommit
// starting state which is 6,7.
gfx::Transform expected_transform;
expected_transform.Translate(6.0, 7.0);
- EXPECT_EQ(expected_transform, child->draw_transform());
+ EXPECT_EQ(expected_transform, child->DrawTransform());
// And the sync tree layer should know it is animating.
EXPECT_TRUE(child->screen_space_transform_is_animating());
@@ -1111,7 +1111,7 @@ class LayerTreeHostAnimationTestRemoveAnimation
// applied.
gfx::Transform expected_transform;
expected_transform.Translate(10.f, 10.f);
- EXPECT_EQ(expected_transform, child->draw_transform());
+ EXPECT_EQ(expected_transform, child->DrawTransform());
EXPECT_FALSE(child->screen_space_transform_is_animating());
EndTest();
break;
@@ -1250,7 +1250,7 @@ class LayerTreeHostAnimationTestAnimationFinishesDuringCommit
expected_transform.Translate(5.f, 5.f);
LayerImpl* layer_impl =
host_impl->sync_tree()->root_layer()->children()[0].get();
- EXPECT_EQ(expected_transform, layer_impl->draw_transform());
+ EXPECT_EQ(expected_transform, layer_impl->DrawTransform());
EndTest();
break;
}

Powered by Google App Engine
This is Rietveld 408576698