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

Side by Side Diff: cc/layers/layer_utils_unittest.cc

Issue 2080223010: cc: Clean up root_layer code in LTI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase++ Created 4 years, 5 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 unified diff | Download patch
« no previous file with comments | « cc/layers/layer_unittest.cc ('k') | cc/layers/picture_layer_impl_perftest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « cc/layers/layer_unittest.cc ('k') | cc/layers/picture_layer_impl_perftest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698