Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(274)

Side by Side Diff: cc/trees/property_tree.h

Issue 1975623002: cc : Add LayerToPropertyTreeIndices map to PropertyTrees (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 647 matching lines...) Expand 10 before | Expand all | Expand 10 after
658 PropertyTrees(); 658 PropertyTrees();
659 PropertyTrees(const PropertyTrees& other); 659 PropertyTrees(const PropertyTrees& other);
660 ~PropertyTrees(); 660 ~PropertyTrees();
661 661
662 bool operator==(const PropertyTrees& other) const; 662 bool operator==(const PropertyTrees& other) const;
663 PropertyTrees& operator=(const PropertyTrees& from); 663 PropertyTrees& operator=(const PropertyTrees& from);
664 664
665 void ToProtobuf(proto::PropertyTrees* proto) const; 665 void ToProtobuf(proto::PropertyTrees* proto) const;
666 void FromProtobuf(const proto::PropertyTrees& proto); 666 void FromProtobuf(const proto::PropertyTrees& proto);
667 667
668 std::unordered_map<int, int> transform_node_owner_to_node_map;
669 std::unordered_map<int, int> effect_node_owner_to_node_map;
670 std::unordered_map<int, int> clip_node_owner_to_node_map;
671 std::unordered_map<int, int> scroll_node_owner_to_node_map;
ajuma 2016/05/13 14:38:53 Nit: how about using names like "transform_id_to_i
jaydasika 2016/05/13 19:40:39 Done.
668 TransformTree transform_tree; 672 TransformTree transform_tree;
669 EffectTree effect_tree; 673 EffectTree effect_tree;
670 ClipTree clip_tree; 674 ClipTree clip_tree;
671 ScrollTree scroll_tree; 675 ScrollTree scroll_tree;
672 bool needs_rebuild; 676 bool needs_rebuild;
673 bool non_root_surfaces_enabled; 677 bool non_root_surfaces_enabled;
674 // Change tracking done on property trees needs to be preserved across commits 678 // Change tracking done on property trees needs to be preserved across commits
675 // (when they are not rebuild). We cache a global bool which stores whether 679 // (when they are not rebuild). We cache a global bool which stores whether
676 // we did any change tracking so that we can skip copying the change status 680 // we did any change tracking so that we can skip copying the change status
677 // between property trees when this bool is false. 681 // between property trees when this bool is false.
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
710 714
711 private: 715 private:
712 gfx::Vector2dF inner_viewport_container_bounds_delta_; 716 gfx::Vector2dF inner_viewport_container_bounds_delta_;
713 gfx::Vector2dF outer_viewport_container_bounds_delta_; 717 gfx::Vector2dF outer_viewport_container_bounds_delta_;
714 gfx::Vector2dF inner_viewport_scroll_bounds_delta_; 718 gfx::Vector2dF inner_viewport_scroll_bounds_delta_;
715 }; 719 };
716 720
717 } // namespace cc 721 } // namespace cc
718 722
719 #endif // CC_TREES_PROPERTY_TREE_H_ 723 #endif // CC_TREES_PROPERTY_TREE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698