summaryrefslogtreecommitdiffstats
path: root/cc/trees/layer_tree_impl_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'cc/trees/layer_tree_impl_unittest.cc')
-rw-r--r--cc/trees/layer_tree_impl_unittest.cc24
1 files changed, 12 insertions, 12 deletions
diff --git a/cc/trees/layer_tree_impl_unittest.cc b/cc/trees/layer_tree_impl_unittest.cc
index 195c44b..4a5f480 100644
--- a/cc/trees/layer_tree_impl_unittest.cc
+++ b/cc/trees/layer_tree_impl_unittest.cc
@@ -883,9 +883,9 @@ TEST_F(LayerTreeImplTest, HitTestingForMultipleLayers) {
ExecuteCalculateDrawProperties(root.get());
}
- LayerImpl* child1 = root->children()[0].get();
- LayerImpl* child2 = root->children()[1].get();
- LayerImpl* grand_child1 = child1->children()[0].get();
+ LayerImpl* child1 = root->children()[0];
+ LayerImpl* child2 = root->children()[1];
+ LayerImpl* grand_child1 = child1->children()[0];
host_impl().SetViewportSize(root->bounds());
host_impl().active_tree()->SetRootLayer(std::move(root));
@@ -1111,9 +1111,9 @@ TEST_F(LayerTreeImplTest, HitTestingForMultipleLayersAtVaryingDepths) {
root->AddChild(std::move(child2));
}
- LayerImpl* child1 = root->children()[0].get();
- LayerImpl* child2 = root->children()[1].get();
- LayerImpl* grand_child1 = child1->children()[0].get();
+ LayerImpl* child1 = root->children()[0];
+ LayerImpl* child2 = root->children()[1];
+ LayerImpl* grand_child1 = child1->children()[0];
host_impl().SetViewportSize(root->bounds());
host_impl().active_tree()->SetRootLayer(std::move(root));
@@ -1348,9 +1348,9 @@ TEST_F(LayerTreeImplTest, HitTestingForMultipleLayerLists) {
ExecuteCalculateDrawProperties(root.get());
}
- LayerImpl* child1 = root->children()[0].get();
- LayerImpl* child2 = root->children()[1].get();
- LayerImpl* grand_child1 = child1->children()[0].get();
+ LayerImpl* child1 = root->children()[0];
+ LayerImpl* child2 = root->children()[1];
+ LayerImpl* grand_child1 = child1->children()[0];
host_impl().SetViewportSize(root->bounds());
host_impl().active_tree()->SetRootLayer(std::move(root));
@@ -1692,7 +1692,7 @@ TEST_F(LayerTreeImplTest,
// The visible content rect for test_layer is actually 100x100, even though
// its layout size is 50x50, positioned at 25x25.
LayerImpl* test_layer =
- host_impl().active_tree()->root_layer()->children()[0].get();
+ host_impl().active_tree()->root_layer()->children()[0];
ASSERT_EQ(1u, RenderSurfaceLayerList().size());
ASSERT_EQ(1u, root_layer()->render_surface()->layer_list().size());
@@ -1984,7 +1984,7 @@ TEST_F(LayerTreeImplTest, HitTestingTouchHandlerRegionsForLayerThatIsNotDrawn) {
host_impl().UpdateNumChildrenAndDrawPropertiesForActiveTree();
LayerImpl* test_layer =
- host_impl().active_tree()->root_layer()->children()[0].get();
+ host_impl().active_tree()->root_layer()->children()[0];
// As test_layer doesn't draw content, the layer list of root's render surface
// should contain only the root layer.
ASSERT_EQ(1u, RenderSurfaceLayerList().size());
@@ -2015,7 +2015,7 @@ TEST_F(LayerTreeImplTest, HitTestingTouchHandlerRegionsForLayerThatIsNotDrawn) {
// We change the position of the test layer such that the test point is now
// inside the test_layer.
- test_layer = host_impl().active_tree()->root_layer()->children()[0].get();
+ test_layer = host_impl().active_tree()->root_layer()->children()[0];
test_layer->SetPosition(gfx::PointF(10.f, 10.f));
test_layer->NoteLayerPropertyChanged();
expected_screen_space_transform.MakeIdentity();