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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 const gfx::PointF& position, | 87 const gfx::PointF& position, |
88 const gfx::Point3F& transform_origin) { | 88 const gfx::Point3F& transform_origin) { |
89 post_local.MakeIdentity(); | 89 post_local.MakeIdentity(); |
90 post_local.Scale(post_local_scale_factor, post_local_scale_factor); | 90 post_local.Scale(post_local_scale_factor, post_local_scale_factor); |
91 post_local.Translate3d( | 91 post_local.Translate3d( |
92 position.x() + source_offset.x() + transform_origin.x(), | 92 position.x() + source_offset.x() + transform_origin.x(), |
93 position.y() + source_offset.y() + transform_origin.y(), | 93 position.y() + source_offset.y() + transform_origin.y(), |
94 transform_origin.z()); | 94 transform_origin.z()); |
95 } | 95 } |
96 | 96 |
97 ClipNodeData::ClipNodeData() : transform_id(-1), target_id(-1) { | 97 ClipNodeData::ClipNodeData() |
98 } | 98 : transform_id(-1), target_id(-1), render_surface_applies_clip(false) {} |
99 | 99 |
100 OpacityNodeData::OpacityNodeData() : opacity(1.f), screen_space_opacity(1.f) { | 100 OpacityNodeData::OpacityNodeData() : opacity(1.f), screen_space_opacity(1.f) { |
101 } | 101 } |
102 | 102 |
103 void TransformTree::clear() { | 103 void TransformTree::clear() { |
104 PropertyTree<TransformNode>::clear(); | 104 PropertyTree<TransformNode>::clear(); |
105 | 105 |
106 nodes_affected_by_inner_viewport_bounds_delta_.clear(); | 106 nodes_affected_by_inner_viewport_bounds_delta_.clear(); |
107 nodes_affected_by_outer_viewport_bounds_delta_.clear(); | 107 nodes_affected_by_outer_viewport_bounds_delta_.clear(); |
108 } | 108 } |
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
496 if (parent_node) | 496 if (parent_node) |
497 node->data.node_and_ancestors_have_only_integer_translation = | 497 node->data.node_and_ancestors_have_only_integer_translation = |
498 node->data.node_and_ancestors_have_only_integer_translation && | 498 node->data.node_and_ancestors_have_only_integer_translation && |
499 parent_node->data.node_and_ancestors_have_only_integer_translation; | 499 parent_node->data.node_and_ancestors_have_only_integer_translation; |
500 } | 500 } |
501 | 501 |
502 PropertyTrees::PropertyTrees() : needs_rebuild(true), sequence_number(0) { | 502 PropertyTrees::PropertyTrees() : needs_rebuild(true), sequence_number(0) { |
503 } | 503 } |
504 | 504 |
505 } // namespace cc | 505 } // namespace cc |
OLD | NEW |