| 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 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 431 was_ever_ready_since_last_transform_animation_ = was_ready; | 431 was_ever_ready_since_last_transform_animation_ = was_ready; |
| 432 } | 432 } |
| 433 | 433 |
| 434 void NoteLayerPropertyChanged(); | 434 void NoteLayerPropertyChanged(); |
| 435 | 435 |
| 436 void SetHasWillChangeTransformHint(bool has_will_change); | 436 void SetHasWillChangeTransformHint(bool has_will_change); |
| 437 bool has_will_change_transform_hint() const { | 437 bool has_will_change_transform_hint() const { |
| 438 return has_will_change_transform_hint_; | 438 return has_will_change_transform_hint_; |
| 439 } | 439 } |
| 440 | 440 |
| 441 void SetPreferredRasterBounds(const gfx::Size& preferred_raster_bounds); | |
| 442 bool has_preferred_raster_bounds() const { | |
| 443 return has_preferred_raster_bounds_; | |
| 444 } | |
| 445 const gfx::Size& preferred_raster_scale() const { | |
| 446 return preferred_raster_bounds_; | |
| 447 } | |
| 448 void ClearPreferredRasterBounds(); | |
| 449 | |
| 450 MutatorHost* GetMutatorHost() const; | 441 MutatorHost* GetMutatorHost() const; |
| 451 | 442 |
| 452 ElementListType GetElementTypeForAnimation() const; | 443 ElementListType GetElementTypeForAnimation() const; |
| 453 | 444 |
| 454 protected: | 445 protected: |
| 455 LayerImpl(LayerTreeImpl* layer_impl, | 446 LayerImpl(LayerTreeImpl* layer_impl, |
| 456 int id, | 447 int id, |
| 457 scoped_refptr<SyncedScrollOffset> scroll_offset); | 448 scoped_refptr<SyncedScrollOffset> scroll_offset); |
| 458 LayerImpl(LayerTreeImpl* layer_impl, int id); | 449 LayerImpl(LayerTreeImpl* layer_impl, int id); |
| 459 | 450 |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 555 gfx::Rect damage_rect_; | 546 gfx::Rect damage_rect_; |
| 556 | 547 |
| 557 // Group of properties that need to be computed based on the layer tree | 548 // Group of properties that need to be computed based on the layer tree |
| 558 // hierarchy before layers can be drawn. | 549 // hierarchy before layers can be drawn. |
| 559 DrawProperties draw_properties_; | 550 DrawProperties draw_properties_; |
| 560 PerformanceProperties<LayerImpl> performance_properties_; | 551 PerformanceProperties<LayerImpl> performance_properties_; |
| 561 | 552 |
| 562 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> | 553 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> |
| 563 owned_debug_info_; | 554 owned_debug_info_; |
| 564 base::trace_event::ConvertableToTraceFormat* debug_info_; | 555 base::trace_event::ConvertableToTraceFormat* debug_info_; |
| 565 gfx::Size preferred_raster_bounds_; | |
| 566 | 556 |
| 567 bool has_preferred_raster_bounds_ : 1; | |
| 568 bool has_will_change_transform_hint_ : 1; | 557 bool has_will_change_transform_hint_ : 1; |
| 569 bool needs_push_properties_ : 1; | 558 bool needs_push_properties_ : 1; |
| 570 bool scrollbars_hidden_ : 1; | 559 bool scrollbars_hidden_ : 1; |
| 571 | 560 |
| 572 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 561 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
| 573 }; | 562 }; |
| 574 | 563 |
| 575 } // namespace cc | 564 } // namespace cc |
| 576 | 565 |
| 577 #endif // CC_LAYERS_LAYER_IMPL_H_ | 566 #endif // CC_LAYERS_LAYER_IMPL_H_ |
| OLD | NEW |