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

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

Issue 2795963002: cc: Reduce surface contents scale adjustments. (Closed)
Patch Set: apply scale for copy requests Created 3 years, 8 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_host_unittest_copyrequest.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 632 matching lines...) Expand 10 before | Expand all | Expand 10 after
643 std::unordered_map<ElementId, int, ElementIdHash> 643 std::unordered_map<ElementId, int, ElementIdHash>
644 element_id_to_transform_node_index; 644 element_id_to_transform_node_index;
645 645
646 std::vector<int> always_use_active_tree_opacity_effect_ids; 646 std::vector<int> always_use_active_tree_opacity_effect_ids;
647 TransformTree transform_tree; 647 TransformTree transform_tree;
648 EffectTree effect_tree; 648 EffectTree effect_tree;
649 ClipTree clip_tree; 649 ClipTree clip_tree;
650 ScrollTree scroll_tree; 650 ScrollTree scroll_tree;
651 bool needs_rebuild; 651 bool needs_rebuild;
652 bool non_root_surfaces_enabled; 652 bool non_root_surfaces_enabled;
653 bool can_adjust_raster_scales;
653 // Change tracking done on property trees needs to be preserved across commits 654 // Change tracking done on property trees needs to be preserved across commits
654 // (when they are not rebuild). We cache a global bool which stores whether 655 // (when they are not rebuild). We cache a global bool which stores whether
655 // we did any change tracking so that we can skip copying the change status 656 // we did any change tracking so that we can skip copying the change status
656 // between property trees when this bool is false. 657 // between property trees when this bool is false.
657 bool changed; 658 bool changed;
658 // We cache a global bool for full tree damages to avoid walking the entire 659 // We cache a global bool for full tree damages to avoid walking the entire
659 // tree. 660 // tree.
660 // TODO(jaydasika): Changes to transform and effects that damage the entire 661 // TODO(jaydasika): Changes to transform and effects that damage the entire
661 // tree should be tracked by this bool. Currently, they are tracked by the 662 // tree should be tracked by this bool. Currently, they are tracked by the
662 // individual nodes. 663 // individual nodes.
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
720 DrawTransforms& GetDrawTransforms(int transform_id, int effect_id) const; 721 DrawTransforms& GetDrawTransforms(int transform_id, int effect_id) const;
721 DrawTransformData& FetchDrawTransformsDataFromCache(int transform_id, 722 DrawTransformData& FetchDrawTransformsDataFromCache(int transform_id,
722 int effect_id) const; 723 int effect_id) const;
723 724
724 PropertyTreesCachedData cached_data_; 725 PropertyTreesCachedData cached_data_;
725 }; 726 };
726 727
727 } // namespace cc 728 } // namespace cc
728 729
729 #endif // CC_TREES_PROPERTY_TREE_H_ 730 #endif // CC_TREES_PROPERTY_TREE_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_unittest_copyrequest.cc ('k') | cc/trees/property_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698