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