| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "base/trace_event/trace_event_argument.h" | 5 #include "base/trace_event/trace_event_argument.h" |
| 6 #include "cc/base/math_util.h" | 6 #include "cc/base/math_util.h" |
| 7 #include "cc/layers/layer.h" | 7 #include "cc/layers/layer.h" |
| 8 #include "cc/trees/property_tree.h" | 8 #include "cc/trees/property_tree.h" |
| 9 #include "cc/trees/transform_node.h" | 9 #include "cc/trees/transform_node.h" |
| 10 #include "ui/gfx/geometry/point3_f.h" | 10 #include "ui/gfx/geometry/point3_f.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 node_and_ancestors_are_flat(true), | 30 node_and_ancestors_are_flat(true), |
| 31 node_and_ancestors_have_only_integer_translation(true), | 31 node_and_ancestors_have_only_integer_translation(true), |
| 32 scrolls(false), | 32 scrolls(false), |
| 33 should_be_snapped(false), | 33 should_be_snapped(false), |
| 34 moved_by_inner_viewport_bounds_delta_x(false), | 34 moved_by_inner_viewport_bounds_delta_x(false), |
| 35 moved_by_inner_viewport_bounds_delta_y(false), | 35 moved_by_inner_viewport_bounds_delta_y(false), |
| 36 moved_by_outer_viewport_bounds_delta_x(false), | 36 moved_by_outer_viewport_bounds_delta_x(false), |
| 37 moved_by_outer_viewport_bounds_delta_y(false), | 37 moved_by_outer_viewport_bounds_delta_y(false), |
| 38 in_subtree_of_page_scale_layer(false), | 38 in_subtree_of_page_scale_layer(false), |
| 39 transform_changed(false), | 39 transform_changed(false), |
| 40 ready_since_animation(true), |
| 40 post_local_scale_factor(1.0f) {} | 41 post_local_scale_factor(1.0f) {} |
| 41 | 42 |
| 42 TransformNode::TransformNode(const TransformNode&) = default; | 43 TransformNode::TransformNode(const TransformNode&) = default; |
| 43 | 44 |
| 44 bool TransformNode::operator==(const TransformNode& other) const { | 45 bool TransformNode::operator==(const TransformNode& other) const { |
| 45 return id == other.id && parent_id == other.parent_id && | 46 return id == other.id && parent_id == other.parent_id && |
| 46 owning_layer_id == other.owning_layer_id && | 47 owning_layer_id == other.owning_layer_id && |
| 47 pre_local == other.pre_local && local == other.local && | 48 pre_local == other.pre_local && local == other.local && |
| 48 post_local == other.post_local && to_parent == other.to_parent && | 49 post_local == other.post_local && to_parent == other.to_parent && |
| 49 source_node_id == other.source_node_id && | 50 source_node_id == other.source_node_id && |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 | 123 |
| 123 TransformCachedNodeData::~TransformCachedNodeData() {} | 124 TransformCachedNodeData::~TransformCachedNodeData() {} |
| 124 | 125 |
| 125 bool TransformCachedNodeData::operator==( | 126 bool TransformCachedNodeData::operator==( |
| 126 const TransformCachedNodeData& other) const { | 127 const TransformCachedNodeData& other) const { |
| 127 return from_screen == other.from_screen && to_screen == other.to_screen && | 128 return from_screen == other.from_screen && to_screen == other.to_screen && |
| 128 is_showing_backface == other.is_showing_backface; | 129 is_showing_backface == other.is_showing_backface; |
| 129 } | 130 } |
| 130 | 131 |
| 131 } // namespace cc | 132 } // namespace cc |
| OLD | NEW |