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

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

Issue 1166233002: Rebuild PropertyTrees When Layer Attach to New LayerTreeHost (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@implon
Patch Set: Created 5 years, 6 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') | cc/layers/layer.cc » ('J')
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 678 matching lines...) Expand 10 before | Expand all | Expand 10 after
689 bool IsActive() const override; 689 bool IsActive() const override;
690 690
691 // If this layer has a scroll parent, it removes |this| from its list of 691 // If this layer has a scroll parent, it removes |this| from its list of
692 // scroll children. 692 // scroll children.
693 void RemoveFromScrollTree(); 693 void RemoveFromScrollTree();
694 694
695 // If this layer has a clip parent, it removes |this| from its list of clip 695 // If this layer has a clip parent, it removes |this| from its list of clip
696 // children. 696 // children.
697 void RemoveFromClipTree(); 697 void RemoveFromClipTree();
698 698
699 // When we detach or attach layer to new LayerTreeHost, all property trees'
700 // indices becomes invalid.
701 void InvalidatePropertyTreesIndices();
702
699 void UpdateNumCopyRequestsForSubtree(bool add); 703 void UpdateNumCopyRequestsForSubtree(bool add);
700 void UpdateNumInputHandlersForSubtree(bool add); 704 void UpdateNumInputHandlersForSubtree(bool add);
701 705
702 LayerList children_; 706 LayerList children_;
703 Layer* parent_; 707 Layer* parent_;
704 708
705 // Layer instances have a weak pointer to their LayerTreeHost. 709 // Layer instances have a weak pointer to their LayerTreeHost.
706 // This pointer value is nil when a Layer is not in a tree and is 710 // This pointer value is nil when a Layer is not in a tree and is
707 // updated via SetLayerTreeHost() if a layer moves between trees. 711 // updated via SetLayerTreeHost() if a layer moves between trees.
708 LayerTreeHost* layer_tree_host_; 712 LayerTreeHost* layer_tree_host_;
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
797 801
798 std::vector<FrameTimingRequest> frame_timing_requests_; 802 std::vector<FrameTimingRequest> frame_timing_requests_;
799 bool frame_timing_requests_dirty_; 803 bool frame_timing_requests_dirty_;
800 804
801 DISALLOW_COPY_AND_ASSIGN(Layer); 805 DISALLOW_COPY_AND_ASSIGN(Layer);
802 }; 806 };
803 807
804 } // namespace cc 808 } // namespace cc
805 809
806 #endif // CC_LAYERS_LAYER_H_ 810 #endif // CC_LAYERS_LAYER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layers/layer.cc » ('j') | cc/layers/layer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698