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 526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
537 | 537 |
538 // These maps allow mapping directly from a compositor element id to the | 538 // These maps allow mapping directly from a compositor element id to the |
539 // respective property node. This will eventually allow simplifying logic in | 539 // respective property node. This will eventually allow simplifying logic in |
540 // various places that today has to map from element id to layer id, and then | 540 // various places that today has to map from element id to layer id, and then |
541 // from layer id to the respective property node. Completing that work is | 541 // from layer id to the respective property node. Completing that work is |
542 // pending the launch of Slimming Paint v2 and reworking UI compositor logic | 542 // pending the launch of Slimming Paint v2 and reworking UI compositor logic |
543 // to produce cc property trees and these maps. | 543 // to produce cc property trees and these maps. |
544 std::unordered_map<ElementId, int, ElementIdHash> | 544 std::unordered_map<ElementId, int, ElementIdHash> |
545 element_id_to_effect_node_index; | 545 element_id_to_effect_node_index; |
546 std::unordered_map<ElementId, int, ElementIdHash> | 546 std::unordered_map<ElementId, int, ElementIdHash> |
| 547 element_id_to_scroll_node_index; |
| 548 std::unordered_map<ElementId, int, ElementIdHash> |
547 element_id_to_transform_node_index; | 549 element_id_to_transform_node_index; |
548 | 550 |
549 std::vector<int> always_use_active_tree_opacity_effect_ids; | 551 std::vector<int> always_use_active_tree_opacity_effect_ids; |
550 TransformTree transform_tree; | 552 TransformTree transform_tree; |
551 EffectTree effect_tree; | 553 EffectTree effect_tree; |
552 ClipTree clip_tree; | 554 ClipTree clip_tree; |
553 ScrollTree scroll_tree; | 555 ScrollTree scroll_tree; |
554 bool needs_rebuild; | 556 bool needs_rebuild; |
555 bool non_root_surfaces_enabled; | 557 bool non_root_surfaces_enabled; |
556 // Change tracking done on property trees needs to be preserved across commits | 558 // Change tracking done on property trees needs to be preserved across commits |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
626 DrawTransforms& GetDrawTransforms(int transform_id, int effect_id) const; | 628 DrawTransforms& GetDrawTransforms(int transform_id, int effect_id) const; |
627 DrawTransformData& FetchDrawTransformsDataFromCache(int transform_id, | 629 DrawTransformData& FetchDrawTransformsDataFromCache(int transform_id, |
628 int effect_id) const; | 630 int effect_id) const; |
629 | 631 |
630 PropertyTreesCachedData cached_data_; | 632 PropertyTreesCachedData cached_data_; |
631 }; | 633 }; |
632 | 634 |
633 } // namespace cc | 635 } // namespace cc |
634 | 636 |
635 #endif // CC_TREES_PROPERTY_TREE_H_ | 637 #endif // CC_TREES_PROPERTY_TREE_H_ |
OLD | NEW |