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

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

Issue 1921503005: cc: Move main thread hierarchy dependencies into PropertyTreeBuilder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 7 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_iterator_unittest.cc ('k') | cc/test/layer_test_common.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_position_constraint.h" 5 #include "cc/layers/layer_position_constraint.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "cc/layers/layer.h" 9 #include "cc/layers/layer.h"
10 #include "cc/layers/layer_impl.h" 10 #include "cc/layers/layer_impl.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 } 47 }
48 48
49 void ExecuteCalculateDrawProperties(LayerImpl* root_layer) { 49 void ExecuteCalculateDrawProperties(LayerImpl* root_layer) {
50 std::vector<LayerImpl*> dummy_render_surface_layer_list; 50 std::vector<LayerImpl*> dummy_render_surface_layer_list;
51 LayerTreeHostCommon::CalcDrawPropsImplInputsForTesting inputs( 51 LayerTreeHostCommon::CalcDrawPropsImplInputsForTesting inputs(
52 root_layer, root_layer->bounds(), &dummy_render_surface_layer_list); 52 root_layer, root_layer->bounds(), &dummy_render_surface_layer_list);
53 inputs.inner_viewport_scroll_layer = 53 inputs.inner_viewport_scroll_layer =
54 root_layer->layer_tree_impl()->InnerViewportScrollLayer(); 54 root_layer->layer_tree_impl()->InnerViewportScrollLayer();
55 inputs.outer_viewport_scroll_layer = 55 inputs.outer_viewport_scroll_layer =
56 root_layer->layer_tree_impl()->OuterViewportScrollLayer(); 56 root_layer->layer_tree_impl()->OuterViewportScrollLayer();
57 LayerTreeHostCommon::CalculateDrawProperties(&inputs); 57 LayerTreeHostCommon::CalculateDrawPropertiesForTesting(&inputs);
58 } 58 }
59 59
60 class LayerPositionConstraintTest : public testing::Test { 60 class LayerPositionConstraintTest : public testing::Test {
61 public: 61 public:
62 LayerPositionConstraintTest() 62 LayerPositionConstraintTest()
63 : fake_client_(FakeLayerTreeHostClient::DIRECT_3D), 63 : fake_client_(FakeLayerTreeHostClient::DIRECT_3D),
64 layer_tree_host_( 64 layer_tree_host_(
65 FakeLayerTreeHost::Create(&fake_client_, &task_graph_runner_)), 65 FakeLayerTreeHost::Create(&fake_client_, &task_graph_runner_)),
66 root_impl_(nullptr), 66 root_impl_(nullptr),
67 inner_viewport_container_layer_impl_(nullptr), 67 inner_viewport_container_layer_impl_(nullptr),
(...skipping 1097 matching lines...) Expand 10 before | Expand all | Expand 10 after
1165 VerifySerializeAndDeserializeProto(true, false, true); 1165 VerifySerializeAndDeserializeProto(true, false, true);
1166 VerifySerializeAndDeserializeProto(true, false, false); 1166 VerifySerializeAndDeserializeProto(true, false, false);
1167 VerifySerializeAndDeserializeProto(false, true, true); 1167 VerifySerializeAndDeserializeProto(false, true, true);
1168 VerifySerializeAndDeserializeProto(false, true, false); 1168 VerifySerializeAndDeserializeProto(false, true, false);
1169 VerifySerializeAndDeserializeProto(false, false, true); 1169 VerifySerializeAndDeserializeProto(false, false, true);
1170 VerifySerializeAndDeserializeProto(false, false, false); 1170 VerifySerializeAndDeserializeProto(false, false, false);
1171 } 1171 }
1172 1172
1173 } // namespace 1173 } // namespace
1174 } // namespace cc 1174 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/layer_iterator_unittest.cc ('k') | cc/test/layer_test_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698