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

Unified Diff: cc/trees/layer_tree_host_unittest_animation_timelines.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_timelines.cc
diff --git a/cc/trees/layer_tree_host_unittest_animation_timelines.cc b/cc/trees/layer_tree_host_unittest_animation_timelines.cc
index f1b3e2fa17309e3d95518d8642d0326d97f7f966..acb8197e816d550529bcc475100d9adef1c8a288 100644
--- a/cc/trees/layer_tree_host_unittest_animation_timelines.cc
+++ b/cc/trees/layer_tree_host_unittest_animation_timelines.cc
@@ -919,10 +919,9 @@ class LayerTreeHostTimelinesTestRemoveAnimation
return;
gfx::Transform expected_transform;
expected_transform.Translate(10.f, 10.f);
- EXPECT_EQ(expected_transform, host_impl->active_tree()
- ->root_layer()
- ->children()[0]
- ->draw_transform());
+ EXPECT_EQ(
+ expected_transform,
+ host_impl->active_tree()->root_layer()->children()[0]->DrawTransform());
EndTest();
}
@@ -979,7 +978,7 @@ class LayerTreeHostTimelinesTestAnimationFinishesDuringCommit
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