| 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 678 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |