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

Unified Diff: cc/trees/damage_tracker_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/test/layer_tree_host_common_test.cc ('k') | cc/trees/draw_property_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/damage_tracker_unittest.cc
diff --git a/cc/trees/damage_tracker_unittest.cc b/cc/trees/damage_tracker_unittest.cc
index a9c78349d81ebbfe860f3a53274396e54e60d1aa..e276c01f3ed770995d67c2a967e9155a9f769c8c 100644
--- a/cc/trees/damage_tracker_unittest.cc
+++ b/cc/trees/damage_tracker_unittest.cc
@@ -434,8 +434,8 @@ TEST_F(DamageTrackerTest, VerifyDamageForTransformedLayer) {
rotation.Rotate(45.0);
ClearDamageForAllSurfaces(root);
- child->SetTransformOrigin(gfx::Point3F(
- child->bounds().width() * 0.5f, child->bounds().height() * 0.5f, 0.f));
+ child->test_properties()->transform_origin = gfx::Point3F(
+ child->bounds().width() * 0.5f, child->bounds().height() * 0.5f, 0.f);
child->SetPosition(gfx::PointF(85.f, 85.f));
child->NoteLayerPropertyChanged();
root->layer_tree_impl()->property_trees()->needs_rebuild = true;
@@ -1378,8 +1378,8 @@ TEST_F(DamageTrackerTest, VerifyDamageForReplicaMaskWithTransformOrigin) {
// This is not actually the transform origin point being tested, but by
// convention its
// expected to be the same as the replica's anchor point.
- grand_child1->SetTransformOrigin(
- gfx::Point3F(grand_child1->bounds().width(), 0.f, 0.f));
+ grand_child1->test_properties()->transform_origin =
+ gfx::Point3F(grand_child1->bounds().width(), 0.f, 0.f);
{
std::unique_ptr<LayerImpl> grand_child1_replica =
@@ -1387,8 +1387,8 @@ TEST_F(DamageTrackerTest, VerifyDamageForReplicaMaskWithTransformOrigin) {
grand_child1_replica->SetPosition(gfx::PointF());
// This is the anchor being tested.
- grand_child1_replica->SetTransformOrigin(
- gfx::Point3F(grand_child1->bounds().width(), 0.f, 0.f));
+ grand_child1_replica->test_properties()->transform_origin =
+ gfx::Point3F(grand_child1->bounds().width(), 0.f, 0.f);
gfx::Transform reflection;
reflection.Scale3d(-1.0, 1.0, 1.0);
grand_child1_replica->SetTransform(reflection);
« no previous file with comments | « cc/test/layer_tree_host_common_test.cc ('k') | cc/trees/draw_property_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698