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

Unified Diff: cc/trees/layer_tree_impl_unittest.cc

Issue 1918593002: cc : Stop pushing properties not used by LayerImpl to LayerImpl (3) (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_impl_unittest.cc ('k') | cc/trees/occlusion_tracker_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_impl_unittest.cc
diff --git a/cc/trees/layer_tree_impl_unittest.cc b/cc/trees/layer_tree_impl_unittest.cc
index 7455d462db962f7c781a4b4f0bd3812ab20f877a..e174c2307442a926c5fbe355620a8cfeedd13467 100644
--- a/cc/trees/layer_tree_impl_unittest.cc
+++ b/cc/trees/layer_tree_impl_unittest.cc
@@ -1072,7 +1072,7 @@ TEST_F(LayerTreeImplTest, HitTestingForMultipleLayersAtVaryingDepths) {
SetLayerPropertiesForTesting(root.get(), identity_matrix, transform_origin,
position, bounds, true, false, true);
root->SetDrawsContent(true);
- root->SetShouldFlattenTransform(false);
+ root->test_properties()->should_flatten_transform = false;
root->Set3dSortingContextId(1);
{
// child 1 and child2 are initialized to overlap between x=50 and x=60.
@@ -1094,7 +1094,7 @@ TEST_F(LayerTreeImplTest, HitTestingForMultipleLayersAtVaryingDepths) {
transform_origin, position, bounds, true,
false, false);
child1->SetDrawsContent(true);
- child1->SetShouldFlattenTransform(false);
+ child1->test_properties()->should_flatten_transform = false;
child1->Set3dSortingContextId(1);
position = gfx::PointF(50.f, 10.f);
@@ -1104,7 +1104,7 @@ TEST_F(LayerTreeImplTest, HitTestingForMultipleLayersAtVaryingDepths) {
SetLayerPropertiesForTesting(child2.get(), translate_z, transform_origin,
position, bounds, true, false, false);
child2->SetDrawsContent(true);
- child2->SetShouldFlattenTransform(false);
+ child2->test_properties()->should_flatten_transform = false;
child2->Set3dSortingContextId(1);
// Remember that grand_child is positioned with respect to its parent (i.e.
@@ -1116,7 +1116,7 @@ TEST_F(LayerTreeImplTest, HitTestingForMultipleLayersAtVaryingDepths) {
transform_origin, position, bounds, true,
false, false);
grand_child1->SetDrawsContent(true);
- grand_child1->SetShouldFlattenTransform(false);
+ grand_child1->test_properties()->should_flatten_transform = false;
child1->AddChild(std::move(grand_child1));
root->AddChild(std::move(child1));
« no previous file with comments | « cc/trees/layer_tree_host_impl_unittest.cc ('k') | cc/trees/occlusion_tracker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698