| 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 508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 519 } | 519 } |
| 520 | 520 |
| 521 void set_was_ever_ready_since_last_transform_animation(bool was_ready) { | 521 void set_was_ever_ready_since_last_transform_animation(bool was_ready) { |
| 522 was_ever_ready_since_last_transform_animation_ = was_ready; | 522 was_ever_ready_since_last_transform_animation_ = was_ready; |
| 523 } | 523 } |
| 524 | 524 |
| 525 void NoteLayerPropertyChanged(); | 525 void NoteLayerPropertyChanged(); |
| 526 | 526 |
| 527 void ClearLinksToOtherLayers(); | 527 void ClearLinksToOtherLayers(); |
| 528 | 528 |
| 529 void SetHasWillChangeTransformHint(bool has_will_change); |
| 530 bool has_will_change_transform_hint() const { |
| 531 return has_will_change_transform_hint_; |
| 532 } |
| 533 |
| 529 protected: | 534 protected: |
| 530 LayerImpl(LayerTreeImpl* layer_impl, | 535 LayerImpl(LayerTreeImpl* layer_impl, |
| 531 int id, | 536 int id, |
| 532 scoped_refptr<SyncedScrollOffset> scroll_offset); | 537 scoped_refptr<SyncedScrollOffset> scroll_offset); |
| 533 LayerImpl(LayerTreeImpl* layer_impl, int id); | 538 LayerImpl(LayerTreeImpl* layer_impl, int id); |
| 534 | 539 |
| 535 // Get the color and size of the layer's debug border. | 540 // Get the color and size of the layer's debug border. |
| 536 virtual void GetDebugBorderProperties(SkColor* color, float* width) const; | 541 virtual void GetDebugBorderProperties(SkColor* color, float* width) const; |
| 537 | 542 |
| 538 void AppendDebugBorderQuad(RenderPass* render_pass, | 543 void AppendDebugBorderQuad(RenderPass* render_pass, |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 653 PerformanceProperties<LayerImpl> performance_properties_; | 658 PerformanceProperties<LayerImpl> performance_properties_; |
| 654 | 659 |
| 655 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> | 660 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> |
| 656 owned_debug_info_; | 661 owned_debug_info_; |
| 657 base::trace_event::ConvertableToTraceFormat* debug_info_; | 662 base::trace_event::ConvertableToTraceFormat* debug_info_; |
| 658 std::unique_ptr<RenderSurfaceImpl> render_surface_; | 663 std::unique_ptr<RenderSurfaceImpl> render_surface_; |
| 659 | 664 |
| 660 bool scrolls_drawn_descendant_; | 665 bool scrolls_drawn_descendant_; |
| 661 // If true, the layer or one of its descendants has a touch handler. | 666 // If true, the layer or one of its descendants has a touch handler. |
| 662 bool layer_or_descendant_has_touch_handler_; | 667 bool layer_or_descendant_has_touch_handler_; |
| 668 bool has_will_change_transform_hint_; |
| 663 | 669 |
| 664 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 670 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
| 665 }; | 671 }; |
| 666 | 672 |
| 667 } // namespace cc | 673 } // namespace cc |
| 668 | 674 |
| 669 #endif // CC_LAYERS_LAYER_IMPL_H_ | 675 #endif // CC_LAYERS_LAYER_IMPL_H_ |
| OLD | NEW |