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

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

Issue 1995133002: cc : Delete ResetFlags in property trees (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
« 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 680 matching lines...) Expand 10 before | Expand all | Expand 10 after
691 bool changed; 691 bool changed;
692 // We cache a global bool for full tree damages to avoid walking the entire 692 // We cache a global bool for full tree damages to avoid walking the entire
693 // tree. 693 // tree.
694 // TODO(jaydasika): Changes to transform and effects that damage the entire 694 // TODO(jaydasika): Changes to transform and effects that damage the entire
695 // tree should be tracked by this bool. Currently, they are tracked by the 695 // tree should be tracked by this bool. Currently, they are tracked by the
696 // individual nodes. 696 // individual nodes.
697 bool full_tree_damaged; 697 bool full_tree_damaged;
698 int sequence_number; 698 int sequence_number;
699 bool is_main_thread; 699 bool is_main_thread;
700 bool is_active; 700 bool is_active;
701 enum ResetFlags { EFFECT_TREE, TRANSFORM_TREE, ALL_TREES };
702 701
703 void SetInnerViewportContainerBoundsDelta(gfx::Vector2dF bounds_delta); 702 void SetInnerViewportContainerBoundsDelta(gfx::Vector2dF bounds_delta);
704 void SetOuterViewportContainerBoundsDelta(gfx::Vector2dF bounds_delta); 703 void SetOuterViewportContainerBoundsDelta(gfx::Vector2dF bounds_delta);
705 void SetInnerViewportScrollBoundsDelta(gfx::Vector2dF bounds_delta); 704 void SetInnerViewportScrollBoundsDelta(gfx::Vector2dF bounds_delta);
706 void PushOpacityIfNeeded(PropertyTrees* target_tree); 705 void PushOpacityIfNeeded(PropertyTrees* target_tree);
707 void UpdateChangeTracking(); 706 void UpdateChangeTracking();
708 void PushChangeTrackingTo(PropertyTrees* tree); 707 void PushChangeTrackingTo(PropertyTrees* tree);
709 void ResetAllChangeTracking(ResetFlags flag); 708 void ResetAllChangeTracking();
710 709
711 gfx::Vector2dF inner_viewport_container_bounds_delta() const { 710 gfx::Vector2dF inner_viewport_container_bounds_delta() const {
712 return inner_viewport_container_bounds_delta_; 711 return inner_viewport_container_bounds_delta_;
713 } 712 }
714 713
715 gfx::Vector2dF outer_viewport_container_bounds_delta() const { 714 gfx::Vector2dF outer_viewport_container_bounds_delta() const {
716 return outer_viewport_container_bounds_delta_; 715 return outer_viewport_container_bounds_delta_;
717 } 716 }
718 717
719 gfx::Vector2dF inner_viewport_scroll_bounds_delta() const { 718 gfx::Vector2dF inner_viewport_scroll_bounds_delta() const {
720 return inner_viewport_scroll_bounds_delta_; 719 return inner_viewport_scroll_bounds_delta_;
721 } 720 }
722 721
723 std::unique_ptr<base::trace_event::TracedValue> AsTracedValue() const; 722 std::unique_ptr<base::trace_event::TracedValue> AsTracedValue() const;
724 723
725 private: 724 private:
726 gfx::Vector2dF inner_viewport_container_bounds_delta_; 725 gfx::Vector2dF inner_viewport_container_bounds_delta_;
727 gfx::Vector2dF outer_viewport_container_bounds_delta_; 726 gfx::Vector2dF outer_viewport_container_bounds_delta_;
728 gfx::Vector2dF inner_viewport_scroll_bounds_delta_; 727 gfx::Vector2dF inner_viewport_scroll_bounds_delta_;
729 }; 728 };
730 729
731 } // namespace cc 730 } // namespace cc
732 731
733 #endif // CC_TREES_PROPERTY_TREE_H_ 732 #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