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

Side by Side Diff: cc/layers/layer.h

Issue 1217883002: Rebuild PropertyTrees When Layer Attach to New LayerTreeHost (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2403
Patch Set: Created 5 years, 5 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 | « no previous file | cc/layers/layer.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 2010 The Chromium Authors. All rights reserved. 1 // Copyright 2010 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_LAYERS_LAYER_H_ 5 #ifndef CC_LAYERS_LAYER_H_
6 #define CC_LAYERS_LAYER_H_ 6 #define CC_LAYERS_LAYER_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 656 matching lines...) Expand 10 before | Expand all | Expand 10 after
667 bool IsActive() const override; 667 bool IsActive() const override;
668 668
669 // If this layer has a scroll parent, it removes |this| from its list of 669 // If this layer has a scroll parent, it removes |this| from its list of
670 // scroll children. 670 // scroll children.
671 void RemoveFromScrollTree(); 671 void RemoveFromScrollTree();
672 672
673 // If this layer has a clip parent, it removes |this| from its list of clip 673 // If this layer has a clip parent, it removes |this| from its list of clip
674 // children. 674 // children.
675 void RemoveFromClipTree(); 675 void RemoveFromClipTree();
676 676
677 // When we detach or attach layer to new LayerTreeHost, all property trees'
678 // indices becomes invalid.
679 void InvalidatePropertyTreesIndices();
680
677 void UpdateNumCopyRequestsForSubtree(bool add); 681 void UpdateNumCopyRequestsForSubtree(bool add);
678 void UpdateNumInputHandlersForSubtree(bool add); 682 void UpdateNumInputHandlersForSubtree(bool add);
679 683
680 LayerList children_; 684 LayerList children_;
681 Layer* parent_; 685 Layer* parent_;
682 686
683 // Layer instances have a weak pointer to their LayerTreeHost. 687 // Layer instances have a weak pointer to their LayerTreeHost.
684 // This pointer value is nil when a Layer is not in a tree and is 688 // This pointer value is nil when a Layer is not in a tree and is
685 // updated via SetLayerTreeHost() if a layer moves between trees. 689 // updated via SetLayerTreeHost() if a layer moves between trees.
686 LayerTreeHost* layer_tree_host_; 690 LayerTreeHost* layer_tree_host_;
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
766 770
767 std::vector<FrameTimingRequest> frame_timing_requests_; 771 std::vector<FrameTimingRequest> frame_timing_requests_;
768 bool frame_timing_requests_dirty_; 772 bool frame_timing_requests_dirty_;
769 773
770 DISALLOW_COPY_AND_ASSIGN(Layer); 774 DISALLOW_COPY_AND_ASSIGN(Layer);
771 }; 775 };
772 776
773 } // namespace cc 777 } // namespace cc
774 778
775 #endif // CC_LAYERS_LAYER_H_ 779 #endif // CC_LAYERS_LAYER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layers/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698