OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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_IMPL_H_ | 5 #ifndef CC_LAYERS_LAYER_IMPL_H_ |
6 #define CC_LAYERS_LAYER_IMPL_H_ | 6 #define CC_LAYERS_LAYER_IMPL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 692 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
703 const gfx::Size& bounds, | 703 const gfx::Size& bounds, |
704 const SharedQuadState* shared_quad_state, | 704 const SharedQuadState* shared_quad_state, |
705 AppendQuadsData* append_quads_data) const; | 705 AppendQuadsData* append_quads_data) const; |
706 void AppendDebugBorderQuad(RenderPass* render_pass, | 706 void AppendDebugBorderQuad(RenderPass* render_pass, |
707 const gfx::Size& bounds, | 707 const gfx::Size& bounds, |
708 const SharedQuadState* shared_quad_state, | 708 const SharedQuadState* shared_quad_state, |
709 AppendQuadsData* append_quads_data, | 709 AppendQuadsData* append_quads_data, |
710 SkColor color, | 710 SkColor color, |
711 float width) const; | 711 float width) const; |
712 | 712 |
713 void NoteLayerPropertyChangedForSubtree(); | |
714 | |
715 // Note carefully this does not affect the current layer. | |
716 void NoteLayerPropertyChangedForDescendants(); | |
717 | |
718 gfx::Rect GetScaledEnclosingRectInTargetSpace(float scale) const; | 713 gfx::Rect GetScaledEnclosingRectInTargetSpace(float scale) const; |
719 | 714 |
720 private: | 715 private: |
721 void ValidateQuadResourcesInternal(DrawQuad* quad) const; | 716 void ValidateQuadResourcesInternal(DrawQuad* quad) const; |
722 | 717 |
723 void PushScrollOffset(const gfx::ScrollOffset* scroll_offset); | 718 void PushScrollOffset(const gfx::ScrollOffset* scroll_offset); |
724 void DidUpdateScrollOffset(); | 719 void DidUpdateScrollOffset(); |
725 void NoteLayerPropertyChangedForDescendantsInternal(); | 720 void NoteLayerPropertyChangedForDescendantsInternal(); |
726 void PushLayerPropertyChangedForSubtreeInternal(); | 721 void PushLayerPropertyChangedForSubtreeInternal(); |
727 | 722 |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
881 // If true, the layer or one of its descendants has a touch handler. | 876 // If true, the layer or one of its descendants has a touch handler. |
882 bool layer_or_descendant_has_touch_handler_; | 877 bool layer_or_descendant_has_touch_handler_; |
883 bool sorted_for_recursion_; | 878 bool sorted_for_recursion_; |
884 | 879 |
885 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 880 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
886 }; | 881 }; |
887 | 882 |
888 } // namespace cc | 883 } // namespace cc |
889 | 884 |
890 #endif // CC_LAYERS_LAYER_IMPL_H_ | 885 #endif // CC_LAYERS_LAYER_IMPL_H_ |
OLD | NEW |