| 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 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 return touch_event_handler_region_; | 309 return touch_event_handler_region_; |
| 310 } | 310 } |
| 311 | 311 |
| 312 void SetScrollBlocksOn(ScrollBlocksOn scroll_blocks_on); | 312 void SetScrollBlocksOn(ScrollBlocksOn scroll_blocks_on); |
| 313 ScrollBlocksOn scroll_blocks_on() const { return scroll_blocks_on_; } | 313 ScrollBlocksOn scroll_blocks_on() const { return scroll_blocks_on_; } |
| 314 | 314 |
| 315 void set_did_scroll_callback(const base::Closure& callback) { | 315 void set_did_scroll_callback(const base::Closure& callback) { |
| 316 did_scroll_callback_ = callback; | 316 did_scroll_callback_ = callback; |
| 317 } | 317 } |
| 318 | 318 |
| 319 void SetDrawCheckerboardForMissingTiles(bool checkerboard); | |
| 320 bool draw_checkerboard_for_missing_tiles() const { | |
| 321 return draw_checkerboard_for_missing_tiles_; | |
| 322 } | |
| 323 | |
| 324 void SetForceRenderSurface(bool force_render_surface); | 319 void SetForceRenderSurface(bool force_render_surface); |
| 325 bool force_render_surface() const { return force_render_surface_; } | 320 bool force_render_surface() const { return force_render_surface_; } |
| 326 | 321 |
| 327 gfx::Vector2dF ScrollDelta() const { return gfx::Vector2dF(); } | 322 gfx::Vector2dF ScrollDelta() const { return gfx::Vector2dF(); } |
| 328 gfx::ScrollOffset CurrentScrollOffset() const { return scroll_offset_; } | 323 gfx::ScrollOffset CurrentScrollOffset() const { return scroll_offset_; } |
| 329 | 324 |
| 330 void SetDoubleSided(bool double_sided); | 325 void SetDoubleSided(bool double_sided); |
| 331 bool double_sided() const { return double_sided_; } | 326 bool double_sided() const { return double_sided_; } |
| 332 | 327 |
| 333 void SetShouldFlattenTransform(bool flatten); | 328 void SetShouldFlattenTransform(bool flatten); |
| (...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 710 bool is_root_for_isolated_group_ : 1; | 705 bool is_root_for_isolated_group_ : 1; |
| 711 bool is_container_for_fixed_position_layers_ : 1; | 706 bool is_container_for_fixed_position_layers_ : 1; |
| 712 bool is_drawable_ : 1; | 707 bool is_drawable_ : 1; |
| 713 bool draws_content_ : 1; | 708 bool draws_content_ : 1; |
| 714 bool hide_layer_and_subtree_ : 1; | 709 bool hide_layer_and_subtree_ : 1; |
| 715 bool masks_to_bounds_ : 1; | 710 bool masks_to_bounds_ : 1; |
| 716 bool contents_opaque_ : 1; | 711 bool contents_opaque_ : 1; |
| 717 bool double_sided_ : 1; | 712 bool double_sided_ : 1; |
| 718 bool should_flatten_transform_ : 1; | 713 bool should_flatten_transform_ : 1; |
| 719 bool use_parent_backface_visibility_ : 1; | 714 bool use_parent_backface_visibility_ : 1; |
| 720 bool draw_checkerboard_for_missing_tiles_ : 1; | |
| 721 bool force_render_surface_ : 1; | 715 bool force_render_surface_ : 1; |
| 722 bool transform_is_invertible_ : 1; | 716 bool transform_is_invertible_ : 1; |
| 723 bool has_render_surface_ : 1; | 717 bool has_render_surface_ : 1; |
| 724 ScrollBlocksOn scroll_blocks_on_ : 3; | 718 ScrollBlocksOn scroll_blocks_on_ : 3; |
| 725 Region non_fast_scrollable_region_; | 719 Region non_fast_scrollable_region_; |
| 726 Region touch_event_handler_region_; | 720 Region touch_event_handler_region_; |
| 727 gfx::PointF position_; | 721 gfx::PointF position_; |
| 728 SkColor background_color_; | 722 SkColor background_color_; |
| 729 float opacity_; | 723 float opacity_; |
| 730 SkXfermode::Mode blend_mode_; | 724 SkXfermode::Mode blend_mode_; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 768 | 762 |
| 769 std::vector<FrameTimingRequest> frame_timing_requests_; | 763 std::vector<FrameTimingRequest> frame_timing_requests_; |
| 770 bool frame_timing_requests_dirty_; | 764 bool frame_timing_requests_dirty_; |
| 771 | 765 |
| 772 DISALLOW_COPY_AND_ASSIGN(Layer); | 766 DISALLOW_COPY_AND_ASSIGN(Layer); |
| 773 }; | 767 }; |
| 774 | 768 |
| 775 } // namespace cc | 769 } // namespace cc |
| 776 | 770 |
| 777 #endif // CC_LAYERS_LAYER_H_ | 771 #endif // CC_LAYERS_LAYER_H_ |
| OLD | NEW |