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

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

Issue 1949253006: cc: Ensure damage in property tree nodes gets propagated to descendants (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
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_host_unittest.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 <unordered_map> 10 #include <unordered_map>
(...skipping 643 matching lines...) Expand 10 before | Expand all | Expand 10 after
654 // individual nodes. 654 // individual nodes.
655 bool full_tree_damaged; 655 bool full_tree_damaged;
656 int sequence_number; 656 int sequence_number;
657 bool is_main_thread; 657 bool is_main_thread;
658 bool is_active; 658 bool is_active;
659 enum ResetFlags { EFFECT_TREE, TRANSFORM_TREE, ALL_TREES }; 659 enum ResetFlags { EFFECT_TREE, TRANSFORM_TREE, ALL_TREES };
660 660
661 void SetInnerViewportContainerBoundsDelta(gfx::Vector2dF bounds_delta); 661 void SetInnerViewportContainerBoundsDelta(gfx::Vector2dF bounds_delta);
662 void SetOuterViewportContainerBoundsDelta(gfx::Vector2dF bounds_delta); 662 void SetOuterViewportContainerBoundsDelta(gfx::Vector2dF bounds_delta);
663 void SetInnerViewportScrollBoundsDelta(gfx::Vector2dF bounds_delta); 663 void SetInnerViewportScrollBoundsDelta(gfx::Vector2dF bounds_delta);
664 void UpdateChangeTracking();
664 void PushChangeTrackingTo(PropertyTrees* tree); 665 void PushChangeTrackingTo(PropertyTrees* tree);
665 void ResetAllChangeTracking(ResetFlags flag); 666 void ResetAllChangeTracking(ResetFlags flag);
666 667
667 gfx::Vector2dF inner_viewport_container_bounds_delta() const { 668 gfx::Vector2dF inner_viewport_container_bounds_delta() const {
668 return inner_viewport_container_bounds_delta_; 669 return inner_viewport_container_bounds_delta_;
669 } 670 }
670 671
671 gfx::Vector2dF outer_viewport_container_bounds_delta() const { 672 gfx::Vector2dF outer_viewport_container_bounds_delta() const {
672 return outer_viewport_container_bounds_delta_; 673 return outer_viewport_container_bounds_delta_;
673 } 674 }
674 675
675 gfx::Vector2dF inner_viewport_scroll_bounds_delta() const { 676 gfx::Vector2dF inner_viewport_scroll_bounds_delta() const {
676 return inner_viewport_scroll_bounds_delta_; 677 return inner_viewport_scroll_bounds_delta_;
677 } 678 }
678 679
679 private: 680 private:
680 gfx::Vector2dF inner_viewport_container_bounds_delta_; 681 gfx::Vector2dF inner_viewport_container_bounds_delta_;
681 gfx::Vector2dF outer_viewport_container_bounds_delta_; 682 gfx::Vector2dF outer_viewport_container_bounds_delta_;
682 gfx::Vector2dF inner_viewport_scroll_bounds_delta_; 683 gfx::Vector2dF inner_viewport_scroll_bounds_delta_;
683 }; 684 };
684 685
685 } // namespace cc 686 } // namespace cc
686 687
687 #endif // CC_TREES_PROPERTY_TREE_H_ 688 #endif // CC_TREES_PROPERTY_TREE_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_unittest.cc ('k') | cc/trees/property_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698