| 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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 } | 179 } |
| 180 | 180 |
| 181 const LayerTreeSettings& settings() const { return settings_; } | 181 const LayerTreeSettings& settings() const { return settings_; } |
| 182 | 182 |
| 183 void SetDebugState(const LayerTreeDebugState& debug_state); | 183 void SetDebugState(const LayerTreeDebugState& debug_state); |
| 184 const LayerTreeDebugState& debug_state() const { return debug_state_; } | 184 const LayerTreeDebugState& debug_state() const { return debug_state_; } |
| 185 | 185 |
| 186 bool has_gpu_rasterization_trigger() const { | 186 bool has_gpu_rasterization_trigger() const { |
| 187 return has_gpu_rasterization_trigger_; | 187 return has_gpu_rasterization_trigger_; |
| 188 } | 188 } |
| 189 void set_has_gpu_rasterization_trigger(bool has_trigger) { | 189 void SetHasGpuRasterizationTrigger(bool has_trigger); |
| 190 has_gpu_rasterization_trigger_ = has_trigger; | |
| 191 } | |
| 192 bool UseGpuRasterization() const; | 190 bool UseGpuRasterization() const; |
| 193 | 191 |
| 194 void SetViewportSize(const gfx::Size& device_viewport_size); | 192 void SetViewportSize(const gfx::Size& device_viewport_size); |
| 195 void SetOverdrawBottomHeight(float overdraw_bottom_height); | 193 void SetOverdrawBottomHeight(float overdraw_bottom_height); |
| 196 | 194 |
| 197 gfx::Size device_viewport_size() const { return device_viewport_size_; } | 195 gfx::Size device_viewport_size() const { return device_viewport_size_; } |
| 198 float overdraw_bottom_height() const { return overdraw_bottom_height_; } | 196 float overdraw_bottom_height() const { return overdraw_bottom_height_; } |
| 199 | 197 |
| 200 void ApplyPageScaleDeltaFromImplSide(float page_scale_delta); | 198 void ApplyPageScaleDeltaFromImplSide(float page_scale_delta); |
| 201 void SetPageScaleFactorAndLimits(float page_scale_factor, | 199 void SetPageScaleFactorAndLimits(float page_scale_factor, |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 445 | 443 |
| 446 ScopedPtrVector<SwapPromise> swap_promise_list_; | 444 ScopedPtrVector<SwapPromise> swap_promise_list_; |
| 447 std::set<SwapPromiseMonitor*> swap_promise_monitor_; | 445 std::set<SwapPromiseMonitor*> swap_promise_monitor_; |
| 448 | 446 |
| 449 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 447 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
| 450 }; | 448 }; |
| 451 | 449 |
| 452 } // namespace cc | 450 } // namespace cc |
| 453 | 451 |
| 454 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 452 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
| OLD | NEW |