| 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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 void RegisterViewportLayers( | 194 void RegisterViewportLayers( |
| 195 scoped_refptr<Layer> page_scale_layer, | 195 scoped_refptr<Layer> page_scale_layer, |
| 196 scoped_refptr<Layer> inner_viewport_scroll_layer, | 196 scoped_refptr<Layer> inner_viewport_scroll_layer, |
| 197 scoped_refptr<Layer> outer_viewport_scroll_layer); | 197 scoped_refptr<Layer> outer_viewport_scroll_layer); |
| 198 | 198 |
| 199 const LayerTreeSettings& settings() const { return settings_; } | 199 const LayerTreeSettings& settings() const { return settings_; } |
| 200 | 200 |
| 201 void SetDebugState(const LayerTreeDebugState& debug_state); | 201 void SetDebugState(const LayerTreeDebugState& debug_state); |
| 202 const LayerTreeDebugState& debug_state() const { return debug_state_; } | 202 const LayerTreeDebugState& debug_state() const { return debug_state_; } |
| 203 | 203 |
| 204 void SetViewportSize(const gfx::Size& device_viewport_size); | 204 void SetViewportSize(gfx::Size device_viewport_size); |
| 205 void SetOverdrawBottomHeight(float overdraw_bottom_height); | 205 void SetOverdrawBottomHeight(float overdraw_bottom_height); |
| 206 | 206 |
| 207 gfx::Size device_viewport_size() const { return device_viewport_size_; } | 207 gfx::Size device_viewport_size() const { return device_viewport_size_; } |
| 208 float overdraw_bottom_height() const { return overdraw_bottom_height_; } | 208 float overdraw_bottom_height() const { return overdraw_bottom_height_; } |
| 209 | 209 |
| 210 void ApplyPageScaleDeltaFromImplSide(float page_scale_delta); | 210 void ApplyPageScaleDeltaFromImplSide(float page_scale_delta); |
| 211 void SetPageScaleFactorAndLimits(float page_scale_factor, | 211 void SetPageScaleFactorAndLimits(float page_scale_factor, |
| 212 float min_page_scale_factor, | 212 float min_page_scale_factor, |
| 213 float max_page_scale_factor); | 213 float max_page_scale_factor); |
| 214 float page_scale_factor() const { return page_scale_factor_; } | 214 float page_scale_factor() const { return page_scale_factor_; } |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 452 | 452 |
| 453 ScopedPtrVector<SwapPromise> swap_promise_list_; | 453 ScopedPtrVector<SwapPromise> swap_promise_list_; |
| 454 std::set<SwapPromiseMonitor*> swap_promise_monitor_; | 454 std::set<SwapPromiseMonitor*> swap_promise_monitor_; |
| 455 | 455 |
| 456 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 456 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
| 457 }; | 457 }; |
| 458 | 458 |
| 459 } // namespace cc | 459 } // namespace cc |
| 460 | 460 |
| 461 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 461 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
| OLD | NEW |