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