OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |