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 <limits> | 8 #include <limits> |
9 #include <list> | 9 #include <list> |
10 #include <set> | 10 #include <set> |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 void SetDebugState(const LayerTreeDebugState& debug_state); | 203 void SetDebugState(const LayerTreeDebugState& debug_state); |
204 const LayerTreeDebugState& debug_state() const { return debug_state_; } | 204 const LayerTreeDebugState& debug_state() const { return debug_state_; } |
205 | 205 |
206 bool has_gpu_rasterization_trigger() const { | 206 bool has_gpu_rasterization_trigger() const { |
207 return has_gpu_rasterization_trigger_; | 207 return has_gpu_rasterization_trigger_; |
208 } | 208 } |
209 void SetHasGpuRasterizationTrigger(bool has_trigger); | 209 void SetHasGpuRasterizationTrigger(bool has_trigger); |
210 bool UseGpuRasterization() const; | 210 bool UseGpuRasterization() const; |
211 | 211 |
212 void SetViewportSize(const gfx::Size& device_viewport_size); | 212 void SetViewportSize(const gfx::Size& device_viewport_size); |
213 void SetTopControlsLayoutHeight(float height); | 213 void SetTopControlsShrinkBlinkSize(bool shrink); |
| 214 void SetTopControlsHeight(float height); |
214 void SetTopControlsContentOffset(float offset); | 215 void SetTopControlsContentOffset(float offset); |
215 | 216 |
216 gfx::Size device_viewport_size() const { return device_viewport_size_; } | 217 gfx::Size device_viewport_size() const { return device_viewport_size_; } |
217 | 218 |
218 void ApplyPageScaleDeltaFromImplSide(float page_scale_delta); | 219 void ApplyPageScaleDeltaFromImplSide(float page_scale_delta); |
219 void SetPageScaleFactorAndLimits(float page_scale_factor, | 220 void SetPageScaleFactorAndLimits(float page_scale_factor, |
220 float min_page_scale_factor, | 221 float min_page_scale_factor, |
221 float max_page_scale_factor); | 222 float max_page_scale_factor); |
222 float page_scale_factor() const { return page_scale_factor_; } | 223 float page_scale_factor() const { return page_scale_factor_; } |
223 | 224 |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
406 scoped_ptr<PrioritizedResourceManager> contents_texture_manager_; | 407 scoped_ptr<PrioritizedResourceManager> contents_texture_manager_; |
407 scoped_ptr<PrioritizedResource> surface_memory_placeholder_; | 408 scoped_ptr<PrioritizedResource> surface_memory_placeholder_; |
408 | 409 |
409 base::WeakPtr<InputHandler> input_handler_weak_ptr_; | 410 base::WeakPtr<InputHandler> input_handler_weak_ptr_; |
410 base::WeakPtr<TopControlsManager> top_controls_manager_weak_ptr_; | 411 base::WeakPtr<TopControlsManager> top_controls_manager_weak_ptr_; |
411 | 412 |
412 const LayerTreeSettings settings_; | 413 const LayerTreeSettings settings_; |
413 LayerTreeDebugState debug_state_; | 414 LayerTreeDebugState debug_state_; |
414 | 415 |
415 gfx::Size device_viewport_size_; | 416 gfx::Size device_viewport_size_; |
416 float top_controls_layout_height_; | 417 bool top_controls_shrink_blink_size_; |
| 418 float top_controls_height_; |
417 float top_controls_content_offset_; | 419 float top_controls_content_offset_; |
418 float device_scale_factor_; | 420 float device_scale_factor_; |
419 | 421 |
420 bool visible_; | 422 bool visible_; |
421 | 423 |
422 base::OneShotTimer<LayerTreeHost> rate_limit_timer_; | 424 base::OneShotTimer<LayerTreeHost> rate_limit_timer_; |
423 | 425 |
424 float page_scale_factor_; | 426 float page_scale_factor_; |
425 float min_page_scale_factor_; | 427 float min_page_scale_factor_; |
426 float max_page_scale_factor_; | 428 float max_page_scale_factor_; |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
477 | 479 |
478 uint32_t surface_id_namespace_; | 480 uint32_t surface_id_namespace_; |
479 uint32_t next_surface_sequence_; | 481 uint32_t next_surface_sequence_; |
480 | 482 |
481 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 483 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
482 }; | 484 }; |
483 | 485 |
484 } // namespace cc | 486 } // namespace cc |
485 | 487 |
486 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 488 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
OLD | NEW |