| 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 SetOverdrawBottomHeight(float overdraw_bottom_height); | 199 void SetTopControlsLayoutHeight(float top_controls_layout_height); |
| 200 | 200 |
| 201 gfx::Size device_viewport_size() const { return device_viewport_size_; } | 201 gfx::Size device_viewport_size() const { return device_viewport_size_; } |
| 202 float overdraw_bottom_height() const { return overdraw_bottom_height_; } | |
| 203 | 202 |
| 204 void ApplyPageScaleDeltaFromImplSide(float page_scale_delta); | 203 void ApplyPageScaleDeltaFromImplSide(float page_scale_delta); |
| 205 void SetPageScaleFactorAndLimits(float page_scale_factor, | 204 void SetPageScaleFactorAndLimits(float page_scale_factor, |
| 206 float min_page_scale_factor, | 205 float min_page_scale_factor, |
| 207 float max_page_scale_factor); | 206 float max_page_scale_factor); |
| 208 float page_scale_factor() const { return page_scale_factor_; } | 207 float page_scale_factor() const { return page_scale_factor_; } |
| 209 | 208 |
| 210 SkColor background_color() const { return background_color_; } | 209 SkColor background_color() const { return background_color_; } |
| 211 void set_background_color(SkColor color) { background_color_ = color; } | 210 void set_background_color(SkColor color) { background_color_ = color; } |
| 212 | 211 |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 scoped_ptr<PrioritizedResourceManager> contents_texture_manager_; | 380 scoped_ptr<PrioritizedResourceManager> contents_texture_manager_; |
| 382 scoped_ptr<PrioritizedResource> surface_memory_placeholder_; | 381 scoped_ptr<PrioritizedResource> surface_memory_placeholder_; |
| 383 | 382 |
| 384 base::WeakPtr<InputHandler> input_handler_weak_ptr_; | 383 base::WeakPtr<InputHandler> input_handler_weak_ptr_; |
| 385 base::WeakPtr<TopControlsManager> top_controls_manager_weak_ptr_; | 384 base::WeakPtr<TopControlsManager> top_controls_manager_weak_ptr_; |
| 386 | 385 |
| 387 const LayerTreeSettings settings_; | 386 const LayerTreeSettings settings_; |
| 388 LayerTreeDebugState debug_state_; | 387 LayerTreeDebugState debug_state_; |
| 389 | 388 |
| 390 gfx::Size device_viewport_size_; | 389 gfx::Size device_viewport_size_; |
| 391 float overdraw_bottom_height_; | 390 float top_controls_layout_height_; |
| 392 float device_scale_factor_; | 391 float device_scale_factor_; |
| 393 | 392 |
| 394 bool visible_; | 393 bool visible_; |
| 395 | 394 |
| 396 base::OneShotTimer<LayerTreeHost> rate_limit_timer_; | 395 base::OneShotTimer<LayerTreeHost> rate_limit_timer_; |
| 397 | 396 |
| 398 float page_scale_factor_; | 397 float page_scale_factor_; |
| 399 float min_page_scale_factor_; | 398 float min_page_scale_factor_; |
| 400 float max_page_scale_factor_; | 399 float max_page_scale_factor_; |
| 401 gfx::Transform impl_transform_; | 400 gfx::Transform impl_transform_; |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 454 | 453 |
| 455 ScopedPtrVector<SwapPromise> swap_promise_list_; | 454 ScopedPtrVector<SwapPromise> swap_promise_list_; |
| 456 std::set<SwapPromiseMonitor*> swap_promise_monitor_; | 455 std::set<SwapPromiseMonitor*> swap_promise_monitor_; |
| 457 | 456 |
| 458 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 457 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
| 459 }; | 458 }; |
| 460 | 459 |
| 461 } // namespace cc | 460 } // namespace cc |
| 462 | 461 |
| 463 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 462 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
| OLD | NEW |