| 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 ComputeTransformWithDestinationSublayerScale( | 155 bool ComputeTransformWithDestinationSublayerScale( |
| 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 // Computes the change of basis transform from node |source_id| to |dest_id|, | |
| 161 // including any sublayer scale at |source_id|. The function returns false | |
| 162 // iff the inverse of a singular transform was used (and the result should, | |
| 163 // therefore, not be trusted). | |
| 164 bool ComputeTransformWithSourceSublayerScale(int source_id, | |
| 165 int dest_id, | |
| 166 gfx::Transform* transform) const; | |
| 167 | |
| 168 // Returns true iff the nodes indexed by |source_id| and |dest_id| are 2D axis | 160 // Returns true iff the nodes indexed by |source_id| and |dest_id| are 2D axis |
| 169 // aligned with respect to one another. | 161 // aligned with respect to one another. |
| 170 bool Are2DAxisAligned(int source_id, int dest_id) const; | 162 bool Are2DAxisAligned(int source_id, int dest_id) const; |
| 171 | 163 |
| 172 void ResetChangeTracking(); | 164 void ResetChangeTracking(); |
| 173 // Updates the parent, target, and screen space transforms and snapping. | 165 // Updates the parent, target, and screen space transforms and snapping. |
| 174 void UpdateTransforms(int id); | 166 void UpdateTransforms(int id); |
| 175 void UpdateTransformChanged(TransformNode* node, | 167 void UpdateTransformChanged(TransformNode* node, |
| 176 TransformNode* parent_node, | 168 TransformNode* parent_node, |
| 177 TransformNode* source_node); | 169 TransformNode* source_node); |
| (...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 568 gfx::Vector2dF inner_viewport_container_bounds_delta_; | 560 gfx::Vector2dF inner_viewport_container_bounds_delta_; |
| 569 gfx::Vector2dF outer_viewport_container_bounds_delta_; | 561 gfx::Vector2dF outer_viewport_container_bounds_delta_; |
| 570 gfx::Vector2dF inner_viewport_scroll_bounds_delta_; | 562 gfx::Vector2dF inner_viewport_scroll_bounds_delta_; |
| 571 | 563 |
| 572 PropertyTreesCachedData cached_data_; | 564 PropertyTreesCachedData cached_data_; |
| 573 }; | 565 }; |
| 574 | 566 |
| 575 } // namespace cc | 567 } // namespace cc |
| 576 | 568 |
| 577 #endif // CC_TREES_PROPERTY_TREE_H_ | 569 #endif // CC_TREES_PROPERTY_TREE_H_ |
| OLD | NEW |