OLD | NEW |
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/trees/property_tree.h" | 5 #include "cc/trees/property_tree.h" |
6 | 6 |
7 #include "cc/input/main_thread_scrolling_reason.h" | 7 #include "cc/input/main_thread_scrolling_reason.h" |
8 #include "cc/proto/property_tree.pb.h" | 8 #include "cc/proto/property_tree.pb.h" |
9 #include "cc/test/geometry_test_utils.h" | 9 #include "cc/test/geometry_test_utils.h" |
10 #include "cc/trees/draw_property_utils.h" | 10 #include "cc/trees/draw_property_utils.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 original.node_and_ancestors_are_flat = false; | 31 original.node_and_ancestors_are_flat = false; |
32 original.node_and_ancestors_have_only_integer_translation = false; | 32 original.node_and_ancestors_have_only_integer_translation = false; |
33 original.scrolls = false; | 33 original.scrolls = false; |
34 original.needs_sublayer_scale = false; | 34 original.needs_sublayer_scale = false; |
35 original.affected_by_inner_viewport_bounds_delta_x = false; | 35 original.affected_by_inner_viewport_bounds_delta_x = false; |
36 original.affected_by_inner_viewport_bounds_delta_y = false; | 36 original.affected_by_inner_viewport_bounds_delta_y = false; |
37 original.affected_by_outer_viewport_bounds_delta_x = false; | 37 original.affected_by_outer_viewport_bounds_delta_x = false; |
38 original.affected_by_outer_viewport_bounds_delta_y = false; | 38 original.affected_by_outer_viewport_bounds_delta_y = false; |
39 original.in_subtree_of_page_scale_layer = false; | 39 original.in_subtree_of_page_scale_layer = false; |
40 original.post_local_scale_factor = 0.5f; | 40 original.post_local_scale_factor = 0.5f; |
41 original.local_maximum_animation_target_scale = 0.6f; | |
42 original.local_starting_animation_scale = 0.7f; | |
43 original.combined_maximum_animation_target_scale = 0.8f; | |
44 original.combined_starting_animation_scale = 0.9f; | |
45 original.sublayer_scale = gfx::Vector2dF(0.5f, 0.5f); | 41 original.sublayer_scale = gfx::Vector2dF(0.5f, 0.5f); |
46 original.scroll_offset = gfx::ScrollOffset(1.5f, 1.5f); | 42 original.scroll_offset = gfx::ScrollOffset(1.5f, 1.5f); |
47 original.scroll_snap = gfx::Vector2dF(0.4f, 0.4f); | 43 original.scroll_snap = gfx::Vector2dF(0.4f, 0.4f); |
48 original.source_offset = gfx::Vector2dF(2.5f, 2.4f); | 44 original.source_offset = gfx::Vector2dF(2.5f, 2.4f); |
49 original.source_to_parent = gfx::Vector2dF(3.2f, 3.2f); | 45 original.source_to_parent = gfx::Vector2dF(3.2f, 3.2f); |
50 | 46 |
51 proto::TreeNode proto; | 47 proto::TreeNode proto; |
52 original.ToProtobuf(&proto); | 48 original.ToProtobuf(&proto); |
53 TransformNodeData result; | 49 TransformNodeData result; |
54 result.FromProtobuf(proto); | 50 result.FromProtobuf(proto); |
(...skipping 1100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1155 | 1151 |
1156 DIRECT_AND_SERIALIZED_PROPERTY_TREE_TEST_F( | 1152 DIRECT_AND_SERIALIZED_PROPERTY_TREE_TEST_F( |
1157 PropertyTreeTestSingularTransformSnapTest); | 1153 PropertyTreeTestSingularTransformSnapTest); |
1158 | 1154 |
1159 #undef DIRECT_AND_SERIALIZED_PROPERTY_TREE_TEST_F | 1155 #undef DIRECT_AND_SERIALIZED_PROPERTY_TREE_TEST_F |
1160 #undef SERIALIZED_PROPERTY_TREE_TEST_F | 1156 #undef SERIALIZED_PROPERTY_TREE_TEST_F |
1161 #undef DIRECT_PROPERTY_TREE_TEST_F | 1157 #undef DIRECT_PROPERTY_TREE_TEST_F |
1162 | 1158 |
1163 } // namespace | 1159 } // namespace |
1164 } // namespace cc | 1160 } // namespace cc |
OLD | NEW |