| OLD | NEW |
| 1 // Copyright 2010 The Chromium Authors. All rights reserved. | 1 // Copyright 2010 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_H_ | 5 #ifndef CC_LAYERS_LAYER_H_ |
| 6 #define CC_LAYERS_LAYER_H_ | 6 #define CC_LAYERS_LAYER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 477 } | 477 } |
| 478 void set_visible_layer_rect(const gfx::Rect& rect) { | 478 void set_visible_layer_rect(const gfx::Rect& rect) { |
| 479 visible_layer_rect_ = rect; | 479 visible_layer_rect_ = rect; |
| 480 } | 480 } |
| 481 | 481 |
| 482 void set_clip_rect(const gfx::Rect& rect) {} | 482 void set_clip_rect(const gfx::Rect& rect) {} |
| 483 | 483 |
| 484 void SetSubtreePropertyChanged(); | 484 void SetSubtreePropertyChanged(); |
| 485 bool subtree_property_changed() const { return subtree_property_changed_; } | 485 bool subtree_property_changed() const { return subtree_property_changed_; } |
| 486 | 486 |
| 487 void SetLayerPropertyChanged(); |
| 488 bool layer_property_changed() const { return layer_property_changed_; } |
| 489 |
| 487 void DidBeginTracing(); | 490 void DidBeginTracing(); |
| 488 | 491 |
| 489 int num_copy_requests_in_target_subtree(); | 492 int num_copy_requests_in_target_subtree(); |
| 490 | 493 |
| 491 void SetElementId(uint64_t id); | 494 void SetElementId(uint64_t id); |
| 492 uint64_t element_id() const { return element_id_; } | 495 uint64_t element_id() const { return element_id_; } |
| 493 | 496 |
| 494 void SetMutableProperties(uint32_t properties); | 497 void SetMutableProperties(uint32_t properties); |
| 495 uint32_t mutable_properties() const { return mutable_properties_; } | 498 uint32_t mutable_properties() const { return mutable_properties_; } |
| 496 | 499 |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 639 bool hide_layer_and_subtree_ : 1; | 642 bool hide_layer_and_subtree_ : 1; |
| 640 bool masks_to_bounds_ : 1; | 643 bool masks_to_bounds_ : 1; |
| 641 bool contents_opaque_ : 1; | 644 bool contents_opaque_ : 1; |
| 642 bool double_sided_ : 1; | 645 bool double_sided_ : 1; |
| 643 bool should_flatten_transform_ : 1; | 646 bool should_flatten_transform_ : 1; |
| 644 bool use_parent_backface_visibility_ : 1; | 647 bool use_parent_backface_visibility_ : 1; |
| 645 bool use_local_transform_for_backface_visibility_ : 1; | 648 bool use_local_transform_for_backface_visibility_ : 1; |
| 646 bool should_check_backface_visibility_ : 1; | 649 bool should_check_backface_visibility_ : 1; |
| 647 bool force_render_surface_for_testing_ : 1; | 650 bool force_render_surface_for_testing_ : 1; |
| 648 bool subtree_property_changed_ : 1; | 651 bool subtree_property_changed_ : 1; |
| 652 bool layer_property_changed_ : 1; |
| 649 bool has_will_change_transform_hint_ : 1; | 653 bool has_will_change_transform_hint_ : 1; |
| 650 Region non_fast_scrollable_region_; | 654 Region non_fast_scrollable_region_; |
| 651 Region touch_event_handler_region_; | 655 Region touch_event_handler_region_; |
| 652 gfx::PointF position_; | 656 gfx::PointF position_; |
| 653 SkColor background_color_; | 657 SkColor background_color_; |
| 654 SkColor safe_opaque_background_color_; | 658 SkColor safe_opaque_background_color_; |
| 655 float opacity_; | 659 float opacity_; |
| 656 SkXfermode::Mode blend_mode_; | 660 SkXfermode::Mode blend_mode_; |
| 657 // draw_blend_mode may be different than blend_mode_, | 661 // draw_blend_mode may be different than blend_mode_, |
| 658 // when a RenderSurface re-parents the layer's blend_mode. | 662 // when a RenderSurface re-parents the layer's blend_mode. |
| (...skipping 24 matching lines...) Expand all Loading... |
| 683 // These all act like draw properties, so don't need push properties. | 687 // These all act like draw properties, so don't need push properties. |
| 684 gfx::Rect visible_layer_rect_; | 688 gfx::Rect visible_layer_rect_; |
| 685 size_t num_unclipped_descendants_; | 689 size_t num_unclipped_descendants_; |
| 686 | 690 |
| 687 DISALLOW_COPY_AND_ASSIGN(Layer); | 691 DISALLOW_COPY_AND_ASSIGN(Layer); |
| 688 }; | 692 }; |
| 689 | 693 |
| 690 } // namespace cc | 694 } // namespace cc |
| 691 | 695 |
| 692 #endif // CC_LAYERS_LAYER_H_ | 696 #endif // CC_LAYERS_LAYER_H_ |
| OLD | NEW |