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 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
468 } | 468 } |
469 | 469 |
470 void set_clip_rect(const gfx::Rect& rect) {} | 470 void set_clip_rect(const gfx::Rect& rect) {} |
471 | 471 |
472 void SetSubtreePropertyChanged(); | 472 void SetSubtreePropertyChanged(); |
473 bool subtree_property_changed() const { return subtree_property_changed_; } | 473 bool subtree_property_changed() const { return subtree_property_changed_; } |
474 | 474 |
475 void SetLayerPropertyChanged(); | 475 void SetLayerPropertyChanged(); |
476 bool layer_property_changed() const { return layer_property_changed_; } | 476 bool layer_property_changed() const { return layer_property_changed_; } |
477 | 477 |
| 478 void SetMayContainVideo(bool yes); |
| 479 |
478 void DidBeginTracing(); | 480 void DidBeginTracing(); |
479 | 481 |
480 int num_copy_requests_in_target_subtree(); | 482 int num_copy_requests_in_target_subtree(); |
481 | 483 |
482 void SetElementId(ElementId id); | 484 void SetElementId(ElementId id); |
483 ElementId element_id() const { return inputs_.element_id; } | 485 ElementId element_id() const { return inputs_.element_id; } |
484 | 486 |
485 void SetMutableProperties(uint32_t properties); | 487 void SetMutableProperties(uint32_t properties); |
486 uint32_t mutable_properties() const { return inputs_.mutable_properties; } | 488 uint32_t mutable_properties() const { return inputs_.mutable_properties; } |
487 | 489 |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
706 int scroll_tree_index_; | 708 int scroll_tree_index_; |
707 int property_tree_sequence_number_; | 709 int property_tree_sequence_number_; |
708 gfx::Vector2dF offset_to_transform_parent_; | 710 gfx::Vector2dF offset_to_transform_parent_; |
709 bool should_flatten_transform_from_property_tree_ : 1; | 711 bool should_flatten_transform_from_property_tree_ : 1; |
710 bool draws_content_ : 1; | 712 bool draws_content_ : 1; |
711 bool use_local_transform_for_backface_visibility_ : 1; | 713 bool use_local_transform_for_backface_visibility_ : 1; |
712 bool should_check_backface_visibility_ : 1; | 714 bool should_check_backface_visibility_ : 1; |
713 bool force_render_surface_for_testing_ : 1; | 715 bool force_render_surface_for_testing_ : 1; |
714 bool subtree_property_changed_ : 1; | 716 bool subtree_property_changed_ : 1; |
715 bool layer_property_changed_ : 1; | 717 bool layer_property_changed_ : 1; |
| 718 bool may_contain_video_ : 1; |
716 SkColor safe_opaque_background_color_; | 719 SkColor safe_opaque_background_color_; |
717 // draw_blend_mode may be different than blend_mode_, | 720 // draw_blend_mode may be different than blend_mode_, |
718 // when a RenderSurface re-parents the layer's blend_mode. | 721 // when a RenderSurface re-parents the layer's blend_mode. |
719 SkXfermode::Mode draw_blend_mode_; | 722 SkXfermode::Mode draw_blend_mode_; |
720 std::unique_ptr<std::set<Layer*>> scroll_children_; | 723 std::unique_ptr<std::set<Layer*>> scroll_children_; |
721 | 724 |
722 std::unique_ptr<std::set<Layer*>> clip_children_; | 725 std::unique_ptr<std::set<Layer*>> clip_children_; |
723 | 726 |
724 PaintProperties paint_properties_; | 727 PaintProperties paint_properties_; |
725 | 728 |
726 // These all act like draw properties, so don't need push properties. | 729 // These all act like draw properties, so don't need push properties. |
727 gfx::Rect visible_layer_rect_; | 730 gfx::Rect visible_layer_rect_; |
728 size_t num_unclipped_descendants_; | 731 size_t num_unclipped_descendants_; |
729 | 732 |
730 DISALLOW_COPY_AND_ASSIGN(Layer); | 733 DISALLOW_COPY_AND_ASSIGN(Layer); |
731 }; | 734 }; |
732 | 735 |
733 } // namespace cc | 736 } // namespace cc |
734 | 737 |
735 #endif // CC_LAYERS_LAYER_H_ | 738 #endif // CC_LAYERS_LAYER_H_ |
OLD | NEW |