| 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 <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 493 void set_should_flatten_transform_from_property_tree(bool should_flatten) { | 493 void set_should_flatten_transform_from_property_tree(bool should_flatten) { |
| 494 if (should_flatten_transform_from_property_tree_ == should_flatten) | 494 if (should_flatten_transform_from_property_tree_ == should_flatten) |
| 495 return; | 495 return; |
| 496 should_flatten_transform_from_property_tree_ = should_flatten; | 496 should_flatten_transform_from_property_tree_ = should_flatten; |
| 497 SetNeedsPushProperties(); | 497 SetNeedsPushProperties(); |
| 498 } | 498 } |
| 499 bool should_flatten_transform_from_property_tree() const { | 499 bool should_flatten_transform_from_property_tree() const { |
| 500 return should_flatten_transform_from_property_tree_; | 500 return should_flatten_transform_from_property_tree_; |
| 501 } | 501 } |
| 502 | 502 |
| 503 void set_is_clipped_from_property_tree(bool is_clipped) { |
| 504 is_clipped_from_property_tree_ = is_clipped; |
| 505 SetNeedsPushProperties(); |
| 506 } |
| 507 bool is_clipped_from_property_tree() const { |
| 508 return is_clipped_from_property_tree_; |
| 509 } |
| 510 |
| 503 // TODO(vollick): These values are temporary and will be removed as soon as | 511 // TODO(vollick): These values are temporary and will be removed as soon as |
| 504 // render surface determinations are moved out of CDP. They only exist because | 512 // render surface determinations are moved out of CDP. They only exist because |
| 505 // certain logic depends on whether or not a layer would render to a separate | 513 // certain logic depends on whether or not a layer would render to a separate |
| 506 // surface, but CDP destroys surfaces and targets it doesn't need, so without | 514 // surface, but CDP destroys surfaces and targets it doesn't need, so without |
| 507 // this boolean, this is impossible to determine after the fact without | 515 // this boolean, this is impossible to determine after the fact without |
| 508 // wastefully recomputing it. This is public for the time being so that it can | 516 // wastefully recomputing it. This is public for the time being so that it can |
| 509 // be accessed from CDP. | 517 // be accessed from CDP. |
| 510 bool has_render_surface() const { | 518 bool has_render_surface() const { |
| 511 return has_render_surface_; | 519 return has_render_surface_; |
| 512 } | 520 } |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 691 int num_descendants_that_draw_content_; | 699 int num_descendants_that_draw_content_; |
| 692 int transform_tree_index_; | 700 int transform_tree_index_; |
| 693 int opacity_tree_index_; | 701 int opacity_tree_index_; |
| 694 int clip_tree_index_; | 702 int clip_tree_index_; |
| 695 int property_tree_sequence_number_; | 703 int property_tree_sequence_number_; |
| 696 int num_layer_or_descendants_with_copy_request_; | 704 int num_layer_or_descendants_with_copy_request_; |
| 697 int num_layer_or_descendants_with_input_handler_; | 705 int num_layer_or_descendants_with_input_handler_; |
| 698 int num_children_with_scroll_parent_; | 706 int num_children_with_scroll_parent_; |
| 699 gfx::Vector2dF offset_to_transform_parent_; | 707 gfx::Vector2dF offset_to_transform_parent_; |
| 700 bool should_flatten_transform_from_property_tree_ : 1; | 708 bool should_flatten_transform_from_property_tree_ : 1; |
| 709 bool is_clipped_from_property_tree_ : 1; |
| 701 bool should_scroll_on_main_thread_ : 1; | 710 bool should_scroll_on_main_thread_ : 1; |
| 702 bool have_wheel_event_handlers_ : 1; | 711 bool have_wheel_event_handlers_ : 1; |
| 703 bool have_scroll_event_handlers_ : 1; | 712 bool have_scroll_event_handlers_ : 1; |
| 704 bool user_scrollable_horizontal_ : 1; | 713 bool user_scrollable_horizontal_ : 1; |
| 705 bool user_scrollable_vertical_ : 1; | 714 bool user_scrollable_vertical_ : 1; |
| 706 bool is_root_for_isolated_group_ : 1; | 715 bool is_root_for_isolated_group_ : 1; |
| 707 bool is_container_for_fixed_position_layers_ : 1; | 716 bool is_container_for_fixed_position_layers_ : 1; |
| 708 bool is_drawable_ : 1; | 717 bool is_drawable_ : 1; |
| 709 bool draws_content_ : 1; | 718 bool draws_content_ : 1; |
| 710 bool hide_layer_and_subtree_ : 1; | 719 bool hide_layer_and_subtree_ : 1; |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 764 | 773 |
| 765 std::vector<FrameTimingRequest> frame_timing_requests_; | 774 std::vector<FrameTimingRequest> frame_timing_requests_; |
| 766 bool frame_timing_requests_dirty_; | 775 bool frame_timing_requests_dirty_; |
| 767 | 776 |
| 768 DISALLOW_COPY_AND_ASSIGN(Layer); | 777 DISALLOW_COPY_AND_ASSIGN(Layer); |
| 769 }; | 778 }; |
| 770 | 779 |
| 771 } // namespace cc | 780 } // namespace cc |
| 772 | 781 |
| 773 #endif // CC_LAYERS_LAYER_H_ | 782 #endif // CC_LAYERS_LAYER_H_ |
| OLD | NEW |