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 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 int dest_id, | 281 int dest_id, |
282 gfx::Transform* transform) const; | 282 gfx::Transform* transform) const; |
283 | 283 |
284 private: | 284 private: |
285 // Returns true iff the node at |desc_id| is a descendant of the node at | 285 // Returns true iff the node at |desc_id| is a descendant of the node at |
286 // |anc_id|. | 286 // |anc_id|. |
287 bool IsDescendant(int desc_id, int anc_id) const; | 287 bool IsDescendant(int desc_id, int anc_id) const; |
288 | 288 |
289 void UpdateLocalTransform(TransformNode* node); | 289 void UpdateLocalTransform(TransformNode* node); |
290 void UpdateScreenSpaceTransform(TransformNode* node, | 290 void UpdateScreenSpaceTransform(TransformNode* node, |
291 TransformNode* parent_node, | 291 TransformNode* parent_node); |
292 TransformNode* target_node); | |
293 void UpdateAnimationProperties(TransformNode* node, | 292 void UpdateAnimationProperties(TransformNode* node, |
294 TransformNode* parent_node); | 293 TransformNode* parent_node); |
295 void UndoSnapping(TransformNode* node); | 294 void UndoSnapping(TransformNode* node); |
296 void UpdateSnapping(TransformNode* node); | 295 void UpdateSnapping(TransformNode* node); |
297 void UpdateNodeAndAncestorsHaveIntegerTranslations( | 296 void UpdateNodeAndAncestorsHaveIntegerTranslations( |
298 TransformNode* node, | 297 TransformNode* node, |
299 TransformNode* parent_node); | 298 TransformNode* parent_node); |
300 bool NeedsSourceToParentUpdate(TransformNode* node); | 299 bool NeedsSourceToParentUpdate(TransformNode* node); |
301 | 300 |
302 bool source_to_parent_updates_allowed_; | 301 bool source_to_parent_updates_allowed_; |
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
702 DrawTransforms& GetDrawTransforms(int transform_id, int effect_id) const; | 701 DrawTransforms& GetDrawTransforms(int transform_id, int effect_id) const; |
703 DrawTransformData& FetchDrawTransformsDataFromCache(int transform_id, | 702 DrawTransformData& FetchDrawTransformsDataFromCache(int transform_id, |
704 int effect_id) const; | 703 int effect_id) const; |
705 | 704 |
706 PropertyTreesCachedData cached_data_; | 705 PropertyTreesCachedData cached_data_; |
707 }; | 706 }; |
708 | 707 |
709 } // namespace cc | 708 } // namespace cc |
710 | 709 |
711 #endif // CC_TREES_PROPERTY_TREE_H_ | 710 #endif // CC_TREES_PROPERTY_TREE_H_ |
OLD | NEW |