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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 void SetDebugState(const LayerTreeDebugState& debug_state); | 189 void SetDebugState(const LayerTreeDebugState& debug_state); |
190 const LayerTreeDebugState& debug_state() const { return debug_state_; } | 190 const LayerTreeDebugState& debug_state() const { return debug_state_; } |
191 | 191 |
192 bool has_gpu_rasterization_trigger() const { | 192 bool has_gpu_rasterization_trigger() const { |
193 return has_gpu_rasterization_trigger_; | 193 return has_gpu_rasterization_trigger_; |
194 } | 194 } |
195 void SetHasGpuRasterizationTrigger(bool has_trigger); | 195 void SetHasGpuRasterizationTrigger(bool has_trigger); |
196 bool UseGpuRasterization() const; | 196 bool UseGpuRasterization() const; |
197 | 197 |
198 void SetViewportSize(const gfx::Size& device_viewport_size); | 198 void SetViewportSize(const gfx::Size& device_viewport_size); |
199 void SetTopControlsLayoutHeight(float top_controls_layout_height); | 199 void SetTopControlsLayoutHeight(float height); |
| 200 void SetTopControlsContentOffset(float offset); |
200 | 201 |
201 gfx::Size device_viewport_size() const { return device_viewport_size_; } | 202 gfx::Size device_viewport_size() const { return device_viewport_size_; } |
202 | 203 |
203 void ApplyPageScaleDeltaFromImplSide(float page_scale_delta); | 204 void ApplyPageScaleDeltaFromImplSide(float page_scale_delta); |
204 void SetPageScaleFactorAndLimits(float page_scale_factor, | 205 void SetPageScaleFactorAndLimits(float page_scale_factor, |
205 float min_page_scale_factor, | 206 float min_page_scale_factor, |
206 float max_page_scale_factor); | 207 float max_page_scale_factor); |
207 float page_scale_factor() const { return page_scale_factor_; } | 208 float page_scale_factor() const { return page_scale_factor_; } |
208 | 209 |
209 SkColor background_color() const { return background_color_; } | 210 SkColor background_color() const { return background_color_; } |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
381 scoped_ptr<PrioritizedResource> surface_memory_placeholder_; | 382 scoped_ptr<PrioritizedResource> surface_memory_placeholder_; |
382 | 383 |
383 base::WeakPtr<InputHandler> input_handler_weak_ptr_; | 384 base::WeakPtr<InputHandler> input_handler_weak_ptr_; |
384 base::WeakPtr<TopControlsManager> top_controls_manager_weak_ptr_; | 385 base::WeakPtr<TopControlsManager> top_controls_manager_weak_ptr_; |
385 | 386 |
386 const LayerTreeSettings settings_; | 387 const LayerTreeSettings settings_; |
387 LayerTreeDebugState debug_state_; | 388 LayerTreeDebugState debug_state_; |
388 | 389 |
389 gfx::Size device_viewport_size_; | 390 gfx::Size device_viewport_size_; |
390 float top_controls_layout_height_; | 391 float top_controls_layout_height_; |
| 392 float top_controls_content_offset_; |
391 float device_scale_factor_; | 393 float device_scale_factor_; |
392 | 394 |
393 bool visible_; | 395 bool visible_; |
394 | 396 |
395 base::OneShotTimer<LayerTreeHost> rate_limit_timer_; | 397 base::OneShotTimer<LayerTreeHost> rate_limit_timer_; |
396 | 398 |
397 float page_scale_factor_; | 399 float page_scale_factor_; |
398 float min_page_scale_factor_; | 400 float min_page_scale_factor_; |
399 float max_page_scale_factor_; | 401 float max_page_scale_factor_; |
400 gfx::Transform impl_transform_; | 402 gfx::Transform impl_transform_; |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
453 | 455 |
454 ScopedPtrVector<SwapPromise> swap_promise_list_; | 456 ScopedPtrVector<SwapPromise> swap_promise_list_; |
455 std::set<SwapPromiseMonitor*> swap_promise_monitor_; | 457 std::set<SwapPromiseMonitor*> swap_promise_monitor_; |
456 | 458 |
457 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 459 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
458 }; | 460 }; |
459 | 461 |
460 } // namespace cc | 462 } // namespace cc |
461 | 463 |
462 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 464 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
OLD | NEW |