| 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 <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 514 touch_event_handler_region_ = region; | 514 touch_event_handler_region_ = region; |
| 515 } | 515 } |
| 516 const Region& touch_event_handler_region() const { | 516 const Region& touch_event_handler_region() const { |
| 517 return touch_event_handler_region_; | 517 return touch_event_handler_region_; |
| 518 } | 518 } |
| 519 | 519 |
| 520 void SetScrollBlocksOn(ScrollBlocksOn scroll_blocks_on) { | 520 void SetScrollBlocksOn(ScrollBlocksOn scroll_blocks_on) { |
| 521 scroll_blocks_on_ = scroll_blocks_on; | 521 scroll_blocks_on_ = scroll_blocks_on; |
| 522 } | 522 } |
| 523 ScrollBlocksOn scroll_blocks_on() const { return scroll_blocks_on_; } | 523 ScrollBlocksOn scroll_blocks_on() const { return scroll_blocks_on_; } |
| 524 void SetDrawCheckerboardForMissingTiles(bool checkerboard) { | |
| 525 draw_checkerboard_for_missing_tiles_ = checkerboard; | |
| 526 } | |
| 527 bool draw_checkerboard_for_missing_tiles() const { | |
| 528 return draw_checkerboard_for_missing_tiles_; | |
| 529 } | |
| 530 | 524 |
| 531 InputHandler::ScrollStatus TryScroll( | 525 InputHandler::ScrollStatus TryScroll( |
| 532 const gfx::PointF& screen_space_point, | 526 const gfx::PointF& screen_space_point, |
| 533 InputHandler::ScrollInputType type, | 527 InputHandler::ScrollInputType type, |
| 534 ScrollBlocksOn effective_block_mode) const; | 528 ScrollBlocksOn effective_block_mode) const; |
| 535 | 529 |
| 536 void SetDoubleSided(bool double_sided); | 530 void SetDoubleSided(bool double_sided); |
| 537 bool double_sided() const { return double_sided_; } | 531 bool double_sided() const { return double_sided_; } |
| 538 | 532 |
| 539 void SetTransform(const gfx::Transform& transform); | 533 void SetTransform(const gfx::Transform& transform); |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 776 bool should_flatten_transform_from_property_tree_ : 1; | 770 bool should_flatten_transform_from_property_tree_ : 1; |
| 777 bool is_clipped_ : 1; | 771 bool is_clipped_ : 1; |
| 778 | 772 |
| 779 // Tracks if drawing-related properties have changed since last redraw. | 773 // Tracks if drawing-related properties have changed since last redraw. |
| 780 bool layer_property_changed_ : 1; | 774 bool layer_property_changed_ : 1; |
| 781 | 775 |
| 782 bool masks_to_bounds_ : 1; | 776 bool masks_to_bounds_ : 1; |
| 783 bool contents_opaque_ : 1; | 777 bool contents_opaque_ : 1; |
| 784 bool is_root_for_isolated_group_ : 1; | 778 bool is_root_for_isolated_group_ : 1; |
| 785 bool use_parent_backface_visibility_ : 1; | 779 bool use_parent_backface_visibility_ : 1; |
| 786 bool draw_checkerboard_for_missing_tiles_ : 1; | |
| 787 bool draws_content_ : 1; | 780 bool draws_content_ : 1; |
| 788 bool hide_layer_and_subtree_ : 1; | 781 bool hide_layer_and_subtree_ : 1; |
| 789 | 782 |
| 790 // Cache transform_'s invertibility. | 783 // Cache transform_'s invertibility. |
| 791 bool transform_is_invertible_ : 1; | 784 bool transform_is_invertible_ : 1; |
| 792 | 785 |
| 793 // Set for the layer that other layers are fixed to. | 786 // Set for the layer that other layers are fixed to. |
| 794 bool is_container_for_fixed_position_layers_ : 1; | 787 bool is_container_for_fixed_position_layers_ : 1; |
| 795 | 788 |
| 796 bool is_affected_by_page_scale_ : 1; | 789 bool is_affected_by_page_scale_ : 1; |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 872 bool visited_; | 865 bool visited_; |
| 873 bool layer_or_descendant_is_drawn_; | 866 bool layer_or_descendant_is_drawn_; |
| 874 bool sorted_for_recursion_; | 867 bool sorted_for_recursion_; |
| 875 | 868 |
| 876 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 869 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
| 877 }; | 870 }; |
| 878 | 871 |
| 879 } // namespace cc | 872 } // namespace cc |
| 880 | 873 |
| 881 #endif // CC_LAYERS_LAYER_IMPL_H_ | 874 #endif // CC_LAYERS_LAYER_IMPL_H_ |
| OLD | NEW |