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

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
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..aaaf7523f0b5d8363d384fb26d3a54df331d6802 100644
--- a/cc/trees/damage_tracker_unittest.cc
+++ b/cc/trees/damage_tracker_unittest.cc
@@ -434,7 +434,7 @@ TEST_F(DamageTrackerTest, VerifyDamageForTransformedLayer) {
rotation.Rotate(45.0);
ClearDamageForAllSurfaces(root);
- child->SetTransformOrigin(gfx::Point3F(
+ child->SetTransformOriginForTesting(gfx::Point3F(
child->bounds().width() * 0.5f, child->bounds().height() * 0.5f, 0.f));
child->SetPosition(gfx::PointF(85.f, 85.f));
child->NoteLayerPropertyChanged();
@@ -1378,7 +1378,7 @@ 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(
+ grand_child1->SetTransformOriginForTesting(
gfx::Point3F(grand_child1->bounds().width(), 0.f, 0.f));
{
@@ -1387,7 +1387,7 @@ TEST_F(DamageTrackerTest, VerifyDamageForReplicaMaskWithTransformOrigin) {
grand_child1_replica->SetPosition(gfx::PointF());
// This is the anchor being tested.
- grand_child1_replica->SetTransformOrigin(
+ grand_child1_replica->SetTransformOriginForTesting(
gfx::Point3F(grand_child1->bounds().width(), 0.f, 0.f));
gfx::Transform reflection;
reflection.Scale3d(-1.0, 1.0, 1.0);

Powered by Google App Engine
This is Rietveld 408576698