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 <set> | 5 #include <set> |
6 #include <vector> | 6 #include <vector> |
7 | 7 |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "cc/base/math_util.h" | 9 #include "cc/base/math_util.h" |
10 #include "cc/trees/property_tree.h" | 10 #include "cc/trees/property_tree.h" |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 source_node_id(-1), | 51 source_node_id(-1), |
52 needs_local_transform_update(true), | 52 needs_local_transform_update(true), |
53 is_invertible(true), | 53 is_invertible(true), |
54 ancestors_are_invertible(true), | 54 ancestors_are_invertible(true), |
55 is_animated(false), | 55 is_animated(false), |
56 to_screen_is_animated(false), | 56 to_screen_is_animated(false), |
57 flattens_inherited_transform(false), | 57 flattens_inherited_transform(false), |
58 node_and_ancestors_are_flat(true), | 58 node_and_ancestors_are_flat(true), |
59 scrolls(false), | 59 scrolls(false), |
60 needs_sublayer_scale(false), | 60 needs_sublayer_scale(false), |
61 layer_scale_factor(1.0f) { | 61 layer_scale_factor(1.0f), |
| 62 post_local_scale_factor(1.0f) { |
62 } | 63 } |
63 | 64 |
64 TransformNodeData::~TransformNodeData() { | 65 TransformNodeData::~TransformNodeData() { |
65 } | 66 } |
66 | 67 |
67 void TransformNodeData::update_pre_local_transform( | 68 void TransformNodeData::update_pre_local_transform( |
68 const gfx::Point3F& transform_origin) { | 69 const gfx::Point3F& transform_origin) { |
69 pre_local.MakeIdentity(); | 70 pre_local.MakeIdentity(); |
70 pre_local.Translate3d(-transform_origin.x(), -transform_origin.y(), | 71 pre_local.Translate3d(-transform_origin.x(), -transform_origin.y(), |
71 -transform_origin.z()); | 72 -transform_origin.z()); |
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
379 node->data.from_screen.matrix().postTranslate(-translation.x(), | 380 node->data.from_screen.matrix().postTranslate(-translation.x(), |
380 -translation.y(), 0); | 381 -translation.y(), 0); |
381 | 382 |
382 node->data.scroll_snap = translation; | 383 node->data.scroll_snap = translation; |
383 } | 384 } |
384 | 385 |
385 PropertyTrees::PropertyTrees() : needs_rebuild(true), sequence_number(0) { | 386 PropertyTrees::PropertyTrees() : needs_rebuild(true), sequence_number(0) { |
386 } | 387 } |
387 | 388 |
388 } // namespace cc | 389 } // namespace cc |
OLD | NEW |