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 509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
520 | 520 |
521 class CC_EXPORT PropertyTrees final { | 521 class CC_EXPORT PropertyTrees final { |
522 public: | 522 public: |
523 PropertyTrees(); | 523 PropertyTrees(); |
524 PropertyTrees(const PropertyTrees& other) = delete; | 524 PropertyTrees(const PropertyTrees& other) = delete; |
525 ~PropertyTrees(); | 525 ~PropertyTrees(); |
526 | 526 |
527 bool operator==(const PropertyTrees& other) const; | 527 bool operator==(const PropertyTrees& other) const; |
528 PropertyTrees& operator=(const PropertyTrees& from); | 528 PropertyTrees& operator=(const PropertyTrees& from); |
529 | 529 |
530 std::unordered_map<int, int> transform_id_to_index_map; | 530 std::unordered_map<int, int> layer_id_to_transform_node_index; |
531 std::unordered_map<int, int> effect_id_to_index_map; | 531 std::unordered_map<int, int> layer_id_to_effect_node_index; |
532 std::unordered_map<int, int> clip_id_to_index_map; | 532 std::unordered_map<int, int> layer_id_to_clip_node_index; |
533 std::unordered_map<int, int> scroll_id_to_index_map; | 533 std::unordered_map<int, int> layer_id_to_scroll_node_index; |
534 enum TreeType { TRANSFORM, EFFECT, CLIP, SCROLL }; | 534 enum TreeType { TRANSFORM, EFFECT, CLIP, SCROLL }; |
535 | 535 |
536 std::vector<int> always_use_active_tree_opacity_effect_ids; | 536 std::vector<int> always_use_active_tree_opacity_effect_ids; |
537 TransformTree transform_tree; | 537 TransformTree transform_tree; |
538 EffectTree effect_tree; | 538 EffectTree effect_tree; |
539 ClipTree clip_tree; | 539 ClipTree clip_tree; |
540 ScrollTree scroll_tree; | 540 ScrollTree scroll_tree; |
541 bool needs_rebuild; | 541 bool needs_rebuild; |
542 bool non_root_surfaces_enabled; | 542 bool non_root_surfaces_enabled; |
543 // Change tracking done on property trees needs to be preserved across commits | 543 // 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... |
613 DrawTransforms& GetDrawTransforms(int transform_id, int effect_id) const; | 613 DrawTransforms& GetDrawTransforms(int transform_id, int effect_id) const; |
614 DrawTransformData& FetchDrawTransformsDataFromCache(int transform_id, | 614 DrawTransformData& FetchDrawTransformsDataFromCache(int transform_id, |
615 int effect_id) const; | 615 int effect_id) const; |
616 | 616 |
617 PropertyTreesCachedData cached_data_; | 617 PropertyTreesCachedData cached_data_; |
618 }; | 618 }; |
619 | 619 |
620 } // namespace cc | 620 } // namespace cc |
621 | 621 |
622 #endif // CC_TREES_PROPERTY_TREE_H_ | 622 #endif // CC_TREES_PROPERTY_TREE_H_ |
OLD | NEW |