| 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_TREES_LAYER_TREE_HOST_H_ | 5 #ifndef CC_TREES_LAYER_TREE_HOST_H_ |
| 6 #define CC_TREES_LAYER_TREE_HOST_H_ | 6 #define CC_TREES_LAYER_TREE_HOST_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 scoped_refptr<Layer> outer_viewport_scroll_layer); | 217 scoped_refptr<Layer> outer_viewport_scroll_layer); |
| 218 Layer* inner_viewport_scroll_layer() const { | 218 Layer* inner_viewport_scroll_layer() const { |
| 219 return inner_viewport_scroll_layer_.get(); | 219 return inner_viewport_scroll_layer_.get(); |
| 220 } | 220 } |
| 221 Layer* outer_viewport_scroll_layer() const { | 221 Layer* outer_viewport_scroll_layer() const { |
| 222 return outer_viewport_scroll_layer_.get(); | 222 return outer_viewport_scroll_layer_.get(); |
| 223 } | 223 } |
| 224 | 224 |
| 225 void RegisterSelection(const LayerSelection& selection); | 225 void RegisterSelection(const LayerSelection& selection); |
| 226 | 226 |
| 227 bool have_wheel_event_handlers() const { return have_wheel_event_handlers_; } |
| 228 void SetHaveWheelEventHandlers(bool have_event_handlers); |
| 229 |
| 227 const LayerTreeSettings& settings() const { return settings_; } | 230 const LayerTreeSettings& settings() const { return settings_; } |
| 228 | 231 |
| 229 void SetDebugState(const LayerTreeDebugState& debug_state); | 232 void SetDebugState(const LayerTreeDebugState& debug_state); |
| 230 const LayerTreeDebugState& debug_state() const { return debug_state_; } | 233 const LayerTreeDebugState& debug_state() const { return debug_state_; } |
| 231 | 234 |
| 232 bool has_gpu_rasterization_trigger() const { | 235 bool has_gpu_rasterization_trigger() const { |
| 233 return has_gpu_rasterization_trigger_; | 236 return has_gpu_rasterization_trigger_; |
| 234 } | 237 } |
| 235 void SetHasGpuRasterizationTrigger(bool has_trigger); | 238 void SetHasGpuRasterizationTrigger(bool has_trigger); |
| 236 | 239 |
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 522 float min_page_scale_factor_; | 525 float min_page_scale_factor_; |
| 523 float max_page_scale_factor_; | 526 float max_page_scale_factor_; |
| 524 gfx::Vector2dF elastic_overscroll_; | 527 gfx::Vector2dF elastic_overscroll_; |
| 525 bool has_gpu_rasterization_trigger_; | 528 bool has_gpu_rasterization_trigger_; |
| 526 bool content_is_suitable_for_gpu_rasterization_; | 529 bool content_is_suitable_for_gpu_rasterization_; |
| 527 bool gpu_rasterization_histogram_recorded_; | 530 bool gpu_rasterization_histogram_recorded_; |
| 528 | 531 |
| 529 SkColor background_color_; | 532 SkColor background_color_; |
| 530 bool has_transparent_background_; | 533 bool has_transparent_background_; |
| 531 | 534 |
| 535 bool have_wheel_event_handlers_; |
| 536 |
| 532 scoped_ptr<AnimationRegistrar> animation_registrar_; | 537 scoped_ptr<AnimationRegistrar> animation_registrar_; |
| 533 scoped_ptr<AnimationHost> animation_host_; | 538 scoped_ptr<AnimationHost> animation_host_; |
| 534 | 539 |
| 535 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 540 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
| 536 | 541 |
| 537 // If set, then page scale animation has completed, but the client hasn't been | 542 // If set, then page scale animation has completed, but the client hasn't been |
| 538 // notified about it yet. | 543 // notified about it yet. |
| 539 bool did_complete_scale_animation_; | 544 bool did_complete_scale_animation_; |
| 540 | 545 |
| 541 bool in_paint_layer_contents_; | 546 bool in_paint_layer_contents_; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 564 | 569 |
| 565 uint32_t surface_id_namespace_; | 570 uint32_t surface_id_namespace_; |
| 566 uint32_t next_surface_sequence_; | 571 uint32_t next_surface_sequence_; |
| 567 | 572 |
| 568 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 573 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
| 569 }; | 574 }; |
| 570 | 575 |
| 571 } // namespace cc | 576 } // namespace cc |
| 572 | 577 |
| 573 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 578 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
| OLD | NEW |