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

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

Issue 1139573004: Reset property tree indices when layer is removed from layer tree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 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 | « 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 668 matching lines...) Expand 10 before | Expand all | Expand 10 after
679 // scroll children. 679 // scroll children.
680 void RemoveFromScrollTree(); 680 void RemoveFromScrollTree();
681 681
682 // If this layer has a clip parent, it removes |this| from its list of clip 682 // If this layer has a clip parent, it removes |this| from its list of clip
683 // children. 683 // children.
684 void RemoveFromClipTree(); 684 void RemoveFromClipTree();
685 685
686 void UpdateNumCopyRequestsForSubtree(bool add); 686 void UpdateNumCopyRequestsForSubtree(bool add);
687 void UpdateNumInputHandlersForSubtree(bool add); 687 void UpdateNumInputHandlersForSubtree(bool add);
688 688
689 void InvalidatePropertyTreeIndices();
690
689 LayerList children_; 691 LayerList children_;
690 Layer* parent_; 692 Layer* parent_;
691 693
692 // Layer instances have a weak pointer to their LayerTreeHost. 694 // Layer instances have a weak pointer to their LayerTreeHost.
693 // This pointer value is nil when a Layer is not in a tree and is 695 // This pointer value is nil when a Layer is not in a tree and is
694 // updated via SetLayerTreeHost() if a layer moves between trees. 696 // updated via SetLayerTreeHost() if a layer moves between trees.
695 LayerTreeHost* layer_tree_host_; 697 LayerTreeHost* layer_tree_host_;
696 698
697 scoped_refptr<LayerAnimationController> layer_animation_controller_; 699 scoped_refptr<LayerAnimationController> layer_animation_controller_;
698 700
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
774 776
775 std::vector<FrameTimingRequest> frame_timing_requests_; 777 std::vector<FrameTimingRequest> frame_timing_requests_;
776 bool frame_timing_requests_dirty_; 778 bool frame_timing_requests_dirty_;
777 779
778 DISALLOW_COPY_AND_ASSIGN(Layer); 780 DISALLOW_COPY_AND_ASSIGN(Layer);
779 }; 781 };
780 782
781 } // namespace cc 783 } // namespace cc
782 784
783 #endif // CC_LAYERS_LAYER_H_ 785 #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