| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |