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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 void SetDebugState(const LayerTreeDebugState& debug_state); | 199 void SetDebugState(const LayerTreeDebugState& debug_state); |
200 const LayerTreeDebugState& debug_state() const { return debug_state_; } | 200 const LayerTreeDebugState& debug_state() const { return debug_state_; } |
201 | 201 |
202 bool has_gpu_rasterization_trigger() const { | 202 bool has_gpu_rasterization_trigger() const { |
203 return has_gpu_rasterization_trigger_; | 203 return has_gpu_rasterization_trigger_; |
204 } | 204 } |
205 void SetHasGpuRasterizationTrigger(bool has_trigger); | 205 void SetHasGpuRasterizationTrigger(bool has_trigger); |
206 bool UseGpuRasterization() const; | 206 bool UseGpuRasterization() const; |
207 | 207 |
208 void SetViewportSize(const gfx::Size& device_viewport_size); | 208 void SetViewportSize(const gfx::Size& device_viewport_size); |
209 void SetTopControlsLayoutHeight(float height); | 209 void SetTopControlsShrinkBlinkSize(bool shrink); |
| 210 void SetTopControlsHeight(float height); |
210 void SetTopControlsContentOffset(float offset); | 211 void SetTopControlsContentOffset(float offset); |
211 | 212 |
212 gfx::Size device_viewport_size() const { return device_viewport_size_; } | 213 gfx::Size device_viewport_size() const { return device_viewport_size_; } |
213 | 214 |
214 void ApplyPageScaleDeltaFromImplSide(float page_scale_delta); | 215 void ApplyPageScaleDeltaFromImplSide(float page_scale_delta); |
215 void SetPageScaleFactorAndLimits(float page_scale_factor, | 216 void SetPageScaleFactorAndLimits(float page_scale_factor, |
216 float min_page_scale_factor, | 217 float min_page_scale_factor, |
217 float max_page_scale_factor); | 218 float max_page_scale_factor); |
218 float page_scale_factor() const { return page_scale_factor_; } | 219 float page_scale_factor() const { return page_scale_factor_; } |
219 | 220 |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
399 scoped_ptr<PrioritizedResourceManager> contents_texture_manager_; | 400 scoped_ptr<PrioritizedResourceManager> contents_texture_manager_; |
400 scoped_ptr<PrioritizedResource> surface_memory_placeholder_; | 401 scoped_ptr<PrioritizedResource> surface_memory_placeholder_; |
401 | 402 |
402 base::WeakPtr<InputHandler> input_handler_weak_ptr_; | 403 base::WeakPtr<InputHandler> input_handler_weak_ptr_; |
403 base::WeakPtr<TopControlsManager> top_controls_manager_weak_ptr_; | 404 base::WeakPtr<TopControlsManager> top_controls_manager_weak_ptr_; |
404 | 405 |
405 const LayerTreeSettings settings_; | 406 const LayerTreeSettings settings_; |
406 LayerTreeDebugState debug_state_; | 407 LayerTreeDebugState debug_state_; |
407 | 408 |
408 gfx::Size device_viewport_size_; | 409 gfx::Size device_viewport_size_; |
409 float top_controls_layout_height_; | 410 bool top_controls_shrink_blink_size_; |
| 411 float top_controls_height_; |
410 float top_controls_content_offset_; | 412 float top_controls_content_offset_; |
411 float device_scale_factor_; | 413 float device_scale_factor_; |
412 | 414 |
413 bool visible_; | 415 bool visible_; |
414 | 416 |
415 base::OneShotTimer<LayerTreeHost> rate_limit_timer_; | 417 base::OneShotTimer<LayerTreeHost> rate_limit_timer_; |
416 | 418 |
417 float page_scale_factor_; | 419 float page_scale_factor_; |
418 float min_page_scale_factor_; | 420 float min_page_scale_factor_; |
419 float max_page_scale_factor_; | 421 float max_page_scale_factor_; |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
475 | 477 |
476 uint32_t surface_id_namespace_; | 478 uint32_t surface_id_namespace_; |
477 uint32_t next_surface_sequence_; | 479 uint32_t next_surface_sequence_; |
478 | 480 |
479 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 481 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
480 }; | 482 }; |
481 | 483 |
482 } // namespace cc | 484 } // namespace cc |
483 | 485 |
484 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 486 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
OLD | NEW |