| 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 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 440 was_ever_ready_since_last_transform_animation_ = was_ready; | 440 was_ever_ready_since_last_transform_animation_ = was_ready; |
| 441 } | 441 } |
| 442 | 442 |
| 443 void NoteLayerPropertyChanged(); | 443 void NoteLayerPropertyChanged(); |
| 444 | 444 |
| 445 void SetHasWillChangeTransformHint(bool has_will_change); | 445 void SetHasWillChangeTransformHint(bool has_will_change); |
| 446 bool has_will_change_transform_hint() const { | 446 bool has_will_change_transform_hint() const { |
| 447 return has_will_change_transform_hint_; | 447 return has_will_change_transform_hint_; |
| 448 } | 448 } |
| 449 | 449 |
| 450 void SetPreferredRasterScale(float raster_scale); |
| 451 bool has_preferred_raster_scale() { return has_preferred_raster_scale_; } |
| 452 float preferred_raster_scale() const { return preferred_raster_scale_; } |
| 453 void ClearPreferredRasterScale(); |
| 454 |
| 450 AnimationHost* GetAnimationHost() const; | 455 AnimationHost* GetAnimationHost() const; |
| 451 | 456 |
| 452 ElementListType GetElementTypeForAnimation() const; | 457 ElementListType GetElementTypeForAnimation() const; |
| 453 | 458 |
| 454 protected: | 459 protected: |
| 455 LayerImpl(LayerTreeImpl* layer_impl, | 460 LayerImpl(LayerTreeImpl* layer_impl, |
| 456 int id, | 461 int id, |
| 457 scoped_refptr<SyncedScrollOffset> scroll_offset); | 462 scoped_refptr<SyncedScrollOffset> scroll_offset); |
| 458 LayerImpl(LayerTreeImpl* layer_impl, int id); | 463 LayerImpl(LayerTreeImpl* layer_impl, int id); |
| 459 | 464 |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 556 | 561 |
| 557 // Group of properties that need to be computed based on the layer tree | 562 // Group of properties that need to be computed based on the layer tree |
| 558 // hierarchy before layers can be drawn. | 563 // hierarchy before layers can be drawn. |
| 559 DrawProperties draw_properties_; | 564 DrawProperties draw_properties_; |
| 560 PerformanceProperties<LayerImpl> performance_properties_; | 565 PerformanceProperties<LayerImpl> performance_properties_; |
| 561 | 566 |
| 562 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> | 567 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> |
| 563 owned_debug_info_; | 568 owned_debug_info_; |
| 564 base::trace_event::ConvertableToTraceFormat* debug_info_; | 569 base::trace_event::ConvertableToTraceFormat* debug_info_; |
| 565 std::unique_ptr<RenderSurfaceImpl> render_surface_; | 570 std::unique_ptr<RenderSurfaceImpl> render_surface_; |
| 571 float preferred_raster_scale_; |
| 566 | 572 |
| 573 bool has_preferred_raster_scale_ : 1; |
| 567 bool scrolls_drawn_descendant_ : 1; | 574 bool scrolls_drawn_descendant_ : 1; |
| 568 bool has_will_change_transform_hint_ : 1; | 575 bool has_will_change_transform_hint_ : 1; |
| 569 bool needs_push_properties_ : 1; | 576 bool needs_push_properties_ : 1; |
| 570 | 577 |
| 571 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 578 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
| 572 }; | 579 }; |
| 573 | 580 |
| 574 } // namespace cc | 581 } // namespace cc |
| 575 | 582 |
| 576 #endif // CC_LAYERS_LAYER_IMPL_H_ | 583 #endif // CC_LAYERS_LAYER_IMPL_H_ |
| OLD | NEW |