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

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 667 matching lines...) Expand 10 before | Expand all | Expand 10 after
678 bool changed; 678 bool changed;
679 // We cache a global bool for full tree damages to avoid walking the entire 679 // We cache a global bool for full tree damages to avoid walking the entire
680 // tree. 680 // tree.
681 // TODO(jaydasika): Changes to transform and effects that damage the entire 681 // TODO(jaydasika): Changes to transform and effects that damage the entire
682 // tree should be tracked by this bool. Currently, they are tracked by the 682 // tree should be tracked by this bool. Currently, they are tracked by the
683 // individual nodes. 683 // individual nodes.
684 bool full_tree_damaged; 684 bool full_tree_damaged;
685 int sequence_number; 685 int sequence_number;
686 bool is_main_thread; 686 bool is_main_thread;
687 bool is_active; 687 bool is_active;
688 enum ResetFlags { EFFECT_TREE, TRANSFORM_TREE, ALL_TREES }; 688 enum Types {
689 EFFECT_TREE,
690 TRANSFORM_TREE,
691 CLIP_TREE,
692 SCROLL_TREE,
693 EFFECT_AND_TRANSFORM_TREES
694 };
689 695
690 void SetInnerViewportContainerBoundsDelta(gfx::Vector2dF bounds_delta); 696 void SetInnerViewportContainerBoundsDelta(gfx::Vector2dF bounds_delta);
691 void SetOuterViewportContainerBoundsDelta(gfx::Vector2dF bounds_delta); 697 void SetOuterViewportContainerBoundsDelta(gfx::Vector2dF bounds_delta);
692 void SetInnerViewportScrollBoundsDelta(gfx::Vector2dF bounds_delta); 698 void SetInnerViewportScrollBoundsDelta(gfx::Vector2dF bounds_delta);
693 void UpdateChangeTracking(); 699 void UpdateChangeTracking();
694 void PushChangeTrackingTo(PropertyTrees* tree); 700 void PushChangeTrackingTo(PropertyTrees* tree);
695 void ResetAllChangeTracking(ResetFlags flag); 701 void ResetAllChangeTracking(Types type);
696 702
697 gfx::Vector2dF inner_viewport_container_bounds_delta() const { 703 gfx::Vector2dF inner_viewport_container_bounds_delta() const {
698 return inner_viewport_container_bounds_delta_; 704 return inner_viewport_container_bounds_delta_;
699 } 705 }
700 706
701 gfx::Vector2dF outer_viewport_container_bounds_delta() const { 707 gfx::Vector2dF outer_viewport_container_bounds_delta() const {
702 return outer_viewport_container_bounds_delta_; 708 return outer_viewport_container_bounds_delta_;
703 } 709 }
704 710
705 gfx::Vector2dF inner_viewport_scroll_bounds_delta() const { 711 gfx::Vector2dF inner_viewport_scroll_bounds_delta() const {
706 return inner_viewport_scroll_bounds_delta_; 712 return inner_viewport_scroll_bounds_delta_;
707 } 713 }
708 714
709 std::unique_ptr<base::trace_event::TracedValue> AsTracedValue() const; 715 std::unique_ptr<base::trace_event::TracedValue> AsTracedValue() const;
710 716
711 private: 717 private:
712 gfx::Vector2dF inner_viewport_container_bounds_delta_; 718 gfx::Vector2dF inner_viewport_container_bounds_delta_;
713 gfx::Vector2dF outer_viewport_container_bounds_delta_; 719 gfx::Vector2dF outer_viewport_container_bounds_delta_;
714 gfx::Vector2dF inner_viewport_scroll_bounds_delta_; 720 gfx::Vector2dF inner_viewport_scroll_bounds_delta_;
715 }; 721 };
716 722
717 } // namespace cc 723 } // namespace cc
718 724
719 #endif // CC_TREES_PROPERTY_TREE_H_ 725 #endif // CC_TREES_PROPERTY_TREE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698