| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "cc/layers/layer_utils.h" | 5 #include "cc/layers/layer_utils.h" |
| 6 | 6 |
| 7 #include "cc/animation/animation_host.h" | 7 #include "cc/animation/animation_host.h" |
| 8 #include "cc/animation/animation_id_provider.h" | 8 #include "cc/animation/animation_id_provider.h" |
| 9 #include "cc/animation/transform_operations.h" | 9 #include "cc/animation/transform_operations.h" |
| 10 #include "cc/layers/layer_impl.h" | 10 #include "cc/layers/layer_impl.h" |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 ->test_properties() | 74 ->test_properties() |
| 75 ->AddChild(LayerImpl::Create(host_impl->active_tree(), 6)); | 75 ->AddChild(LayerImpl::Create(host_impl->active_tree(), 6)); |
| 76 root->test_properties() | 76 root->test_properties() |
| 77 ->children[1] | 77 ->children[1] |
| 78 ->test_properties() | 78 ->test_properties() |
| 79 ->children[0] | 79 ->children[0] |
| 80 ->test_properties() | 80 ->test_properties() |
| 81 ->children[0] | 81 ->children[0] |
| 82 ->test_properties() | 82 ->test_properties() |
| 83 ->AddChild(LayerImpl::Create(host_impl->active_tree(), 7)); | 83 ->AddChild(LayerImpl::Create(host_impl->active_tree(), 7)); |
| 84 host_impl->active_tree()->SetRootLayer(std::move(root)); | 84 host_impl->active_tree()->SetRootLayerForTesting(std::move(root)); |
| 85 return root_ptr; | 85 return root_ptr; |
| 86 } | 86 } |
| 87 | 87 |
| 88 FakeImplTaskRunnerProvider task_runner_provider_; | 88 FakeImplTaskRunnerProvider task_runner_provider_; |
| 89 TestSharedBitmapManager shared_bitmap_manager_; | 89 TestSharedBitmapManager shared_bitmap_manager_; |
| 90 TestTaskGraphRunner task_graph_runner_; | 90 TestTaskGraphRunner task_graph_runner_; |
| 91 FakeLayerTreeHostImpl host_impl_; | 91 FakeLayerTreeHostImpl host_impl_; |
| 92 LayerImpl* root_; | 92 LayerImpl* root_; |
| 93 LayerImpl* parent1_; | 93 LayerImpl* parent1_; |
| 94 LayerImpl* parent2_; | 94 LayerImpl* parent2_; |
| (...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 574 // Same as RotateXWithPerspectiveUnderAncestorsWithPositionOr2DTransform test, | 574 // Same as RotateXWithPerspectiveUnderAncestorsWithPositionOr2DTransform test, |
| 575 // except for the perspective calculations. | 575 // except for the perspective calculations. |
| 576 | 576 |
| 577 gfx::BoxF expected(295.f, 180.f, -25.f, 50.f, 50.f, 50.f); | 577 gfx::BoxF expected(295.f, 180.f, -25.f, 50.f, 50.f, 50.f); |
| 578 EXPECT_BOXF_EQ(expected, box); | 578 EXPECT_BOXF_EQ(expected, box); |
| 579 } | 579 } |
| 580 | 580 |
| 581 } // namespace | 581 } // namespace |
| 582 | 582 |
| 583 } // namespace cc | 583 } // namespace cc |
| OLD | NEW |