OLD | NEW |
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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 EXPECT_FALSE(root_layer->layer_tree_impl()->property_trees()->needs_rebuild); | 57 EXPECT_FALSE(root_layer->layer_tree_impl()->property_trees()->needs_rebuild); |
58 LayerTreeHostCommon::CalculateDrawProperties(&inputs); | 58 LayerTreeHostCommon::CalculateDrawProperties(&inputs); |
59 } | 59 } |
60 | 60 |
61 class LayerPositionConstraintTest : public testing::Test { | 61 class LayerPositionConstraintTest : public testing::Test { |
62 public: | 62 public: |
63 LayerPositionConstraintTest() | 63 LayerPositionConstraintTest() |
64 : fake_client_(FakeLayerTreeHostClient::DIRECT_3D), | 64 : layer_tree_host_( |
65 layer_tree_host_( | |
66 FakeLayerTreeHost::Create(&fake_client_, &task_graph_runner_)), | 65 FakeLayerTreeHost::Create(&fake_client_, &task_graph_runner_)), |
67 root_impl_(nullptr), | 66 root_impl_(nullptr), |
68 inner_viewport_container_layer_impl_(nullptr), | 67 inner_viewport_container_layer_impl_(nullptr), |
69 scroll_layer_impl_(nullptr), | 68 scroll_layer_impl_(nullptr), |
70 outer_viewport_container_layer_impl_(nullptr), | 69 outer_viewport_container_layer_impl_(nullptr), |
71 child_transform_layer_impl_(nullptr), | 70 child_transform_layer_impl_(nullptr), |
72 child_impl_(nullptr), | 71 child_impl_(nullptr), |
73 grand_child_impl_(nullptr), | 72 grand_child_impl_(nullptr), |
74 great_grand_child_impl_(nullptr) { | 73 great_grand_child_impl_(nullptr) { |
75 layer_tree_host_->InitializeForTesting( | 74 layer_tree_host_->InitializeForTesting( |
(...skipping 1090 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1166 VerifySerializeAndDeserializeProto(true, false, true); | 1165 VerifySerializeAndDeserializeProto(true, false, true); |
1167 VerifySerializeAndDeserializeProto(true, false, false); | 1166 VerifySerializeAndDeserializeProto(true, false, false); |
1168 VerifySerializeAndDeserializeProto(false, true, true); | 1167 VerifySerializeAndDeserializeProto(false, true, true); |
1169 VerifySerializeAndDeserializeProto(false, true, false); | 1168 VerifySerializeAndDeserializeProto(false, true, false); |
1170 VerifySerializeAndDeserializeProto(false, false, true); | 1169 VerifySerializeAndDeserializeProto(false, false, true); |
1171 VerifySerializeAndDeserializeProto(false, false, false); | 1170 VerifySerializeAndDeserializeProto(false, false, false); |
1172 } | 1171 } |
1173 | 1172 |
1174 } // namespace | 1173 } // namespace |
1175 } // namespace cc | 1174 } // namespace cc |
OLD | NEW |