| 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 579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 590 } | 590 } |
| 591 | 591 |
| 592 void set_was_ever_ready_since_last_transform_animation(bool was_ready) { | 592 void set_was_ever_ready_since_last_transform_animation(bool was_ready) { |
| 593 was_ever_ready_since_last_transform_animation_ = was_ready; | 593 was_ever_ready_since_last_transform_animation_ = was_ready; |
| 594 } | 594 } |
| 595 | 595 |
| 596 void NoteLayerPropertyChanged(); | 596 void NoteLayerPropertyChanged(); |
| 597 | 597 |
| 598 void PushLayerPropertyChangedForSubtree(); | 598 void PushLayerPropertyChangedForSubtree(); |
| 599 | 599 |
| 600 void ClearLinksToOtherLayers(); |
| 601 |
| 600 protected: | 602 protected: |
| 601 LayerImpl(LayerTreeImpl* layer_impl, | 603 LayerImpl(LayerTreeImpl* layer_impl, |
| 602 int id, | 604 int id, |
| 603 scoped_refptr<SyncedScrollOffset> scroll_offset); | 605 scoped_refptr<SyncedScrollOffset> scroll_offset); |
| 604 LayerImpl(LayerTreeImpl* layer_impl, int id); | 606 LayerImpl(LayerTreeImpl* layer_impl, int id); |
| 605 | 607 |
| 606 // Get the color and size of the layer's debug border. | 608 // Get the color and size of the layer's debug border. |
| 607 virtual void GetDebugBorderProperties(SkColor* color, float* width) const; | 609 virtual void GetDebugBorderProperties(SkColor* color, float* width) const; |
| 608 | 610 |
| 609 void AppendDebugBorderQuad(RenderPass* render_pass, | 611 void AppendDebugBorderQuad(RenderPass* render_pass, |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 765 bool layer_or_descendant_is_drawn_; | 767 bool layer_or_descendant_is_drawn_; |
| 766 // If true, the layer or one of its descendants has a touch handler. | 768 // If true, the layer or one of its descendants has a touch handler. |
| 767 bool layer_or_descendant_has_touch_handler_; | 769 bool layer_or_descendant_has_touch_handler_; |
| 768 | 770 |
| 769 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 771 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
| 770 }; | 772 }; |
| 771 | 773 |
| 772 } // namespace cc | 774 } // namespace cc |
| 773 | 775 |
| 774 #endif // CC_LAYERS_LAYER_IMPL_H_ | 776 #endif // CC_LAYERS_LAYER_IMPL_H_ |
| OLD | NEW |