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

Unified Diff: cc/trees/layer_tree_host_impl_unittest.cc

Issue 1908593002: cc : Stop pushing transform origin from Layer and LayerImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/trees/layer_tree_host_common_unittest.cc ('k') | cc/trees/property_tree_builder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_impl_unittest.cc
diff --git a/cc/trees/layer_tree_host_impl_unittest.cc b/cc/trees/layer_tree_host_impl_unittest.cc
index feca1bfa63fbcc122e1b4c4b3dd8e99d07b2dbc9..34e68e17ae8e58a28b8aca92ce1e9ac327063625 100644
--- a/cc/trees/layer_tree_host_impl_unittest.cc
+++ b/cc/trees/layer_tree_host_impl_unittest.cc
@@ -5365,8 +5365,8 @@ TEST_F(LayerTreeHostImplTest, ScrollNonAxisAlignedRotatedLayer) {
// The rotation depends on the layer's transform origin, and the child layer
// is a different size than the clip, so make sure the clip layer's origin
// lines up over the child.
- clip_layer->SetTransformOrigin(gfx::Point3F(
- clip_layer->bounds().width() * 0.5f, clip_layer->bounds().height(), 0.f));
+ clip_layer->test_properties()->transform_origin = gfx::Point3F(
+ clip_layer->bounds().width() * 0.5f, clip_layer->bounds().height(), 0.f);
LayerImpl* child_ptr = child.get();
clip_layer->AddChild(std::move(child));
scroll_layer->AddChild(std::move(clip_layer));
@@ -5451,8 +5451,8 @@ TEST_F(LayerTreeHostImplTest, ScrollPerspectiveTransformedLayer) {
// The transform depends on the layer's transform origin, and the child layer
// is a different size than the clip, so make sure the clip layer's origin
// lines up over the child.
- clip_layer->SetTransformOrigin(gfx::Point3F(
- clip_layer->bounds().width(), clip_layer->bounds().height(), 0.f));
+ clip_layer->test_properties()->transform_origin = gfx::Point3F(
+ clip_layer->bounds().width(), clip_layer->bounds().height(), 0.f);
clip_layer->AddChild(std::move(child));
scroll_layer->AddChild(std::move(clip_layer));
« no previous file with comments | « cc/trees/layer_tree_host_common_unittest.cc ('k') | cc/trees/property_tree_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698