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 561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
572 element_id_to_scroll_node_index; | 572 element_id_to_scroll_node_index; |
573 std::unordered_map<ElementId, int, ElementIdHash> | 573 std::unordered_map<ElementId, int, ElementIdHash> |
574 element_id_to_transform_node_index; | 574 element_id_to_transform_node_index; |
575 | 575 |
576 std::vector<int> always_use_active_tree_opacity_effect_ids; | 576 std::vector<int> always_use_active_tree_opacity_effect_ids; |
577 TransformTree transform_tree; | 577 TransformTree transform_tree; |
578 EffectTree effect_tree; | 578 EffectTree effect_tree; |
579 ClipTree clip_tree; | 579 ClipTree clip_tree; |
580 ScrollTree scroll_tree; | 580 ScrollTree scroll_tree; |
581 bool needs_rebuild; | 581 bool needs_rebuild; |
582 bool non_root_surfaces_enabled; | |
583 // Change tracking done on property trees needs to be preserved across commits | 582 // Change tracking done on property trees needs to be preserved across commits |
584 // (when they are not rebuild). We cache a global bool which stores whether | 583 // (when they are not rebuild). We cache a global bool which stores whether |
585 // we did any change tracking so that we can skip copying the change status | 584 // we did any change tracking so that we can skip copying the change status |
586 // between property trees when this bool is false. | 585 // between property trees when this bool is false. |
587 bool changed; | 586 bool changed; |
588 // We cache a global bool for full tree damages to avoid walking the entire | 587 // We cache a global bool for full tree damages to avoid walking the entire |
589 // tree. | 588 // tree. |
590 // TODO(jaydasika): Changes to transform and effects that damage the entire | 589 // TODO(jaydasika): Changes to transform and effects that damage the entire |
591 // tree should be tracked by this bool. Currently, they are tracked by the | 590 // tree should be tracked by this bool. Currently, they are tracked by the |
592 // individual nodes. | 591 // individual nodes. |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
653 DrawTransforms& GetDrawTransforms(int transform_id, int effect_id) const; | 652 DrawTransforms& GetDrawTransforms(int transform_id, int effect_id) const; |
654 DrawTransformData& FetchDrawTransformsDataFromCache(int transform_id, | 653 DrawTransformData& FetchDrawTransformsDataFromCache(int transform_id, |
655 int effect_id) const; | 654 int effect_id) const; |
656 | 655 |
657 PropertyTreesCachedData cached_data_; | 656 PropertyTreesCachedData cached_data_; |
658 }; | 657 }; |
659 | 658 |
660 } // namespace cc | 659 } // namespace cc |
661 | 660 |
662 #endif // CC_TREES_PROPERTY_TREE_H_ | 661 #endif // CC_TREES_PROPERTY_TREE_H_ |
OLD | NEW |