| 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/proto/gfx_conversions.h" | 7 #include "cc/proto/gfx_conversions.h" |
| 8 #include "cc/proto/property_tree.pb.h" | 8 #include "cc/proto/property_tree.pb.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" |
| 11 | 11 |
| 12 namespace cc { | 12 namespace cc { |
| 13 | 13 |
| 14 TransformNode::TransformNode() | 14 TransformNode::TransformNode() |
| 15 : id(-1), | 15 : id(-1), |
| 16 parent_id(-1), | 16 parent_id(-1), |
| 17 owner_id(-1), | 17 owner_id(-1), |
| 18 sticky_position_constraint_id(-1), |
| 18 source_node_id(-1), | 19 source_node_id(-1), |
| 19 sorting_context_id(0), | 20 sorting_context_id(0), |
| 20 needs_local_transform_update(true), | 21 needs_local_transform_update(true), |
| 21 node_and_ancestors_are_animated_or_invertible(true), | 22 node_and_ancestors_are_animated_or_invertible(true), |
| 22 is_invertible(true), | 23 is_invertible(true), |
| 23 ancestors_are_invertible(true), | 24 ancestors_are_invertible(true), |
| 24 has_potential_animation(false), | 25 has_potential_animation(false), |
| 25 is_currently_animating(false), | 26 is_currently_animating(false), |
| 26 to_screen_is_potentially_animated(false), | 27 to_screen_is_potentially_animated(false), |
| 27 has_only_translation_animations(true), | 28 has_only_translation_animations(true), |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 const proto::TransformCachedNodeData& proto) { | 266 const proto::TransformCachedNodeData& proto) { |
| 266 from_target = ProtoToTransform(proto.from_target()); | 267 from_target = ProtoToTransform(proto.from_target()); |
| 267 to_target = ProtoToTransform(proto.to_target()); | 268 to_target = ProtoToTransform(proto.to_target()); |
| 268 from_screen = ProtoToTransform(proto.from_screen()); | 269 from_screen = ProtoToTransform(proto.from_screen()); |
| 269 to_screen = ProtoToTransform(proto.to_screen()); | 270 to_screen = ProtoToTransform(proto.to_screen()); |
| 270 target_id = proto.target_id(); | 271 target_id = proto.target_id(); |
| 271 content_target_id = proto.content_target_id(); | 272 content_target_id = proto.content_target_id(); |
| 272 } | 273 } |
| 273 | 274 |
| 274 } // namespace cc | 275 } // namespace cc |
| OLD | NEW |