| 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_IMPL_H_ | 5 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| 6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 | 300 |
| 301 void SetNeedsCommit() { client_->SetNeedsCommitOnImplThread(); } | 301 void SetNeedsCommit() { client_->SetNeedsCommitOnImplThread(); } |
| 302 void SetNeedsRedraw(); | 302 void SetNeedsRedraw(); |
| 303 | 303 |
| 304 ManagedMemoryPolicy ActualManagedMemoryPolicy() const; | 304 ManagedMemoryPolicy ActualManagedMemoryPolicy() const; |
| 305 | 305 |
| 306 size_t memory_allocation_limit_bytes() const; | 306 size_t memory_allocation_limit_bytes() const; |
| 307 int memory_allocation_priority_cutoff() const; | 307 int memory_allocation_priority_cutoff() const; |
| 308 | 308 |
| 309 void SetViewportSize(const gfx::Size& device_viewport_size); | 309 void SetViewportSize(const gfx::Size& device_viewport_size); |
| 310 gfx::Size device_viewport_size() const { return device_viewport_size_; } |
| 310 | 311 |
| 311 void SetOverdrawBottomHeight(float overdraw_bottom_height); | 312 void SetOverdrawBottomHeight(float overdraw_bottom_height); |
| 312 float overdraw_bottom_height() const { return overdraw_bottom_height_; } | 313 float overdraw_bottom_height() const { return overdraw_bottom_height_; } |
| 313 | 314 |
| 314 void SetOverhangUIResource(UIResourceId overhang_ui_resource_id, | 315 void SetOverhangUIResource(UIResourceId overhang_ui_resource_id, |
| 315 const gfx::Size& overhang_ui_resource_size); | 316 const gfx::Size& overhang_ui_resource_size); |
| 316 | 317 |
| 317 void SetDeviceScaleFactor(float device_scale_factor); | 318 void SetDeviceScaleFactor(float device_scale_factor); |
| 318 float device_scale_factor() const { return device_scale_factor_; } | 319 float device_scale_factor() const { return device_scale_factor_; } |
| 319 | 320 |
| (...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 655 int id_; | 656 int id_; |
| 656 | 657 |
| 657 std::set<SwapPromiseMonitor*> swap_promise_monitor_; | 658 std::set<SwapPromiseMonitor*> swap_promise_monitor_; |
| 658 | 659 |
| 659 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 660 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 660 }; | 661 }; |
| 661 | 662 |
| 662 } // namespace cc | 663 } // namespace cc |
| 663 | 664 |
| 664 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 665 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |