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 <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 GpuRasterizationStatus GetGpuRasterizationStatus() const; | 211 GpuRasterizationStatus GetGpuRasterizationStatus() const; |
212 | 212 |
213 void SetViewportSize(const gfx::Size& device_viewport_size); | 213 void SetViewportSize(const gfx::Size& device_viewport_size); |
214 void SetTopControlsShrinkBlinkSize(bool shrink); | 214 void SetTopControlsHeight(float height, bool shrink); |
215 void SetTopControlsHeight(float height); | |
216 void SetTopControlsShownRatio(float ratio); | 215 void SetTopControlsShownRatio(float ratio); |
217 | 216 |
218 gfx::Size device_viewport_size() const { return device_viewport_size_; } | 217 gfx::Size device_viewport_size() const { return device_viewport_size_; } |
219 | 218 |
220 void ApplyPageScaleDeltaFromImplSide(float page_scale_delta); | 219 void ApplyPageScaleDeltaFromImplSide(float page_scale_delta); |
221 void SetPageScaleFactorAndLimits(float page_scale_factor, | 220 void SetPageScaleFactorAndLimits(float page_scale_factor, |
222 float min_page_scale_factor, | 221 float min_page_scale_factor, |
223 float max_page_scale_factor); | 222 float max_page_scale_factor); |
224 float page_scale_factor() const { return page_scale_factor_; } | 223 float page_scale_factor() const { return page_scale_factor_; } |
225 gfx::Vector2dF elastic_overscroll() const { return elastic_overscroll_; } | 224 gfx::Vector2dF elastic_overscroll() const { return elastic_overscroll_; } |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
467 | 466 |
468 uint32_t surface_id_namespace_; | 467 uint32_t surface_id_namespace_; |
469 uint32_t next_surface_sequence_; | 468 uint32_t next_surface_sequence_; |
470 | 469 |
471 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 470 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
472 }; | 471 }; |
473 | 472 |
474 } // namespace cc | 473 } // namespace cc |
475 | 474 |
476 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 475 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
OLD | NEW |