Chromium Code Reviews| 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 <vector> | 10 #include <vector> |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 128 bool affected_by_inner_viewport_bounds_delta_y : 1; | 128 bool affected_by_inner_viewport_bounds_delta_y : 1; |
| 129 bool affected_by_outer_viewport_bounds_delta_x : 1; | 129 bool affected_by_outer_viewport_bounds_delta_x : 1; |
| 130 bool affected_by_outer_viewport_bounds_delta_y : 1; | 130 bool affected_by_outer_viewport_bounds_delta_y : 1; |
| 131 | 131 |
| 132 // Layer scale factor is used as a fallback when we either cannot adjust | 132 // Layer scale factor is used as a fallback when we either cannot adjust |
| 133 // raster scale or if the raster scale cannot be extracted from the screen | 133 // raster scale or if the raster scale cannot be extracted from the screen |
| 134 // space transform. For layers in the subtree of the page scale layer, the | 134 // space transform. For layers in the subtree of the page scale layer, the |
| 135 // layer scale factor should include the page scale factor. | 135 // layer scale factor should include the page scale factor. |
| 136 bool in_subtree_of_page_scale_layer : 1; | 136 bool in_subtree_of_page_scale_layer : 1; |
| 137 | 137 |
| 138 bool transform_changed : 1; | |
|
ajuma
2016/02/12 23:57:03
Please add a comment explaining what this means (e
jaydasika
2016/02/16 22:30:36
Done.
| |
| 139 | |
| 138 // TODO(vollick): will be moved when accelerated effects are implemented. | 140 // TODO(vollick): will be moved when accelerated effects are implemented. |
| 139 float post_local_scale_factor; | 141 float post_local_scale_factor; |
| 140 | 142 |
| 141 // The maximum scale that that node's |local| transform will have during | 143 // The maximum scale that that node's |local| transform will have during |
| 142 // current animations, considering only scales at keyframes not including the | 144 // current animations, considering only scales at keyframes not including the |
| 143 // starting keyframe of each animation. | 145 // starting keyframe of each animation. |
| 144 float local_maximum_animation_target_scale; | 146 float local_maximum_animation_target_scale; |
| 145 | 147 |
| 146 // The maximum scale that this node's |local| transform will have during | 148 // The maximum scale that this node's |local| transform will have during |
| 147 // current animatons, considering only the starting scale of each animation. | 149 // current animatons, considering only the starting scale of each animation. |
| (...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 467 void UpdateScreenSpaceTransform(TransformNode* node, | 469 void UpdateScreenSpaceTransform(TransformNode* node, |
| 468 TransformNode* parent_node, | 470 TransformNode* parent_node, |
| 469 TransformNode* target_node); | 471 TransformNode* target_node); |
| 470 void UpdateSublayerScale(TransformNode* node); | 472 void UpdateSublayerScale(TransformNode* node); |
| 471 void UpdateTargetSpaceTransform(TransformNode* node, | 473 void UpdateTargetSpaceTransform(TransformNode* node, |
| 472 TransformNode* target_node); | 474 TransformNode* target_node); |
| 473 void UpdateAnimationProperties(TransformNode* node, | 475 void UpdateAnimationProperties(TransformNode* node, |
| 474 TransformNode* parent_node); | 476 TransformNode* parent_node); |
| 475 void UndoSnapping(TransformNode* node); | 477 void UndoSnapping(TransformNode* node); |
| 476 void UpdateSnapping(TransformNode* node); | 478 void UpdateSnapping(TransformNode* node); |
| 479 void UpdateTransformChanged(TransformNode* node, TransformNode* parent_node); | |
| 477 void UpdateNodeAndAncestorsHaveIntegerTranslations( | 480 void UpdateNodeAndAncestorsHaveIntegerTranslations( |
| 478 TransformNode* node, | 481 TransformNode* node, |
| 479 TransformNode* parent_node); | 482 TransformNode* parent_node); |
| 480 bool NeedsSourceToParentUpdate(TransformNode* node); | 483 bool NeedsSourceToParentUpdate(TransformNode* node); |
| 481 | 484 |
| 482 bool source_to_parent_updates_allowed_; | 485 bool source_to_parent_updates_allowed_; |
| 483 // When to_screen transform has perspective, the transform node's sublayer | 486 // When to_screen transform has perspective, the transform node's sublayer |
| 484 // scale is calculated using page scale factor, device scale factor and the | 487 // scale is calculated using page scale factor, device scale factor and the |
| 485 // scale factor of device transform. So we need to store them explicitly. | 488 // scale factor of device transform. So we need to store them explicitly. |
| 486 float page_scale_factor_; | 489 float page_scale_factor_; |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 569 | 572 |
| 570 private: | 573 private: |
| 571 gfx::Vector2dF inner_viewport_container_bounds_delta_; | 574 gfx::Vector2dF inner_viewport_container_bounds_delta_; |
| 572 gfx::Vector2dF outer_viewport_container_bounds_delta_; | 575 gfx::Vector2dF outer_viewport_container_bounds_delta_; |
| 573 gfx::Vector2dF inner_viewport_scroll_bounds_delta_; | 576 gfx::Vector2dF inner_viewport_scroll_bounds_delta_; |
| 574 }; | 577 }; |
| 575 | 578 |
| 576 } // namespace cc | 579 } // namespace cc |
| 577 | 580 |
| 578 #endif // CC_TREES_PROPERTY_TREE_H_ | 581 #endif // CC_TREES_PROPERTY_TREE_H_ |
| OLD | NEW |