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

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

Issue 2693703010: cc: Remove support for disabling non-root render surfaces. (Closed)
Patch Set: softwaredraw-remove-no-surfaces: rebase Created 3 years, 10 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
« no previous file with comments | « cc/trees/layer_tree_impl.cc ('k') | cc/trees/property_tree.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 561 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_impl.cc ('k') | cc/trees/property_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698