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