| 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 #ifndef CC_TREES_PROPERTY_TREE_H_ | 5 #ifndef CC_TREES_PROPERTY_TREE_H_ |
| 6 #define CC_TREES_PROPERTY_TREE_H_ | 6 #define CC_TREES_PROPERTY_TREE_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 | 150 |
| 151 // Computes the change of basis transform from node |source_id| to |dest_id|, | 151 // Computes the change of basis transform from node |source_id| to |dest_id|, |
| 152 // including any sublayer scale at |dest_id|. The function returns false iff | 152 // including any sublayer scale at |dest_id|. The function returns false iff |
| 153 // the inverse of a singular transform was used (and the result should, | 153 // the inverse of a singular transform was used (and the result should, |
| 154 // therefore, not be trusted). | 154 // therefore, not be trusted). |
| 155 bool ComputeTransformWithDestinationSurfaceContentsScale( | 155 bool ComputeTransformWithDestinationSurfaceContentsScale( |
| 156 int source_id, | 156 int source_id, |
| 157 int dest_id, | 157 int dest_id, |
| 158 gfx::Transform* transform) const; | 158 gfx::Transform* transform) const; |
| 159 | 159 |
| 160 // Returns true iff the nodes indexed by |source_id| and |dest_id| are 2D axis | |
| 161 // aligned with respect to one another. | |
| 162 bool Are2DAxisAligned(int source_id, int dest_id) const; | |
| 163 | |
| 164 void ResetChangeTracking(); | 160 void ResetChangeTracking(); |
| 165 // Updates the parent, target, and screen space transforms and snapping. | 161 // Updates the parent, target, and screen space transforms and snapping. |
| 166 void UpdateTransforms(int id); | 162 void UpdateTransforms(int id); |
| 167 void UpdateTransformChanged(TransformNode* node, | 163 void UpdateTransformChanged(TransformNode* node, |
| 168 TransformNode* parent_node, | 164 TransformNode* parent_node, |
| 169 TransformNode* source_node); | 165 TransformNode* source_node); |
| 170 void UpdateNodeAndAncestorsAreAnimatedOrInvertible( | 166 void UpdateNodeAndAncestorsAreAnimatedOrInvertible( |
| 171 TransformNode* node, | 167 TransformNode* node, |
| 172 TransformNode* parent_node); | 168 TransformNode* parent_node); |
| 173 | 169 |
| (...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 562 gfx::Vector2dF inner_viewport_container_bounds_delta_; | 558 gfx::Vector2dF inner_viewport_container_bounds_delta_; |
| 563 gfx::Vector2dF outer_viewport_container_bounds_delta_; | 559 gfx::Vector2dF outer_viewport_container_bounds_delta_; |
| 564 gfx::Vector2dF inner_viewport_scroll_bounds_delta_; | 560 gfx::Vector2dF inner_viewport_scroll_bounds_delta_; |
| 565 | 561 |
| 566 PropertyTreesCachedData cached_data_; | 562 PropertyTreesCachedData cached_data_; |
| 567 }; | 563 }; |
| 568 | 564 |
| 569 } // namespace cc | 565 } // namespace cc |
| 570 | 566 |
| 571 #endif // CC_TREES_PROPERTY_TREE_H_ | 567 #endif // CC_TREES_PROPERTY_TREE_H_ |
| OLD | NEW |