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 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 bool visible() const { return visible_; } | 290 bool visible() const { return visible_; } |
291 | 291 |
292 void SetNeedsCommit() { client_->SetNeedsCommitOnImplThread(); } | 292 void SetNeedsCommit() { client_->SetNeedsCommitOnImplThread(); } |
293 void SetNeedsRedraw(); | 293 void SetNeedsRedraw(); |
294 | 294 |
295 ManagedMemoryPolicy ActualManagedMemoryPolicy() const; | 295 ManagedMemoryPolicy ActualManagedMemoryPolicy() const; |
296 | 296 |
297 size_t memory_allocation_limit_bytes() const; | 297 size_t memory_allocation_limit_bytes() const; |
298 int memory_allocation_priority_cutoff() const; | 298 int memory_allocation_priority_cutoff() const; |
299 | 299 |
300 void SetViewportSize(const gfx::Size& device_viewport_size); | 300 void SetViewportSize(gfx::Size device_viewport_size); |
301 | 301 |
302 void SetOverdrawBottomHeight(float overdraw_bottom_height); | 302 void SetOverdrawBottomHeight(float overdraw_bottom_height); |
303 float overdraw_bottom_height() const { return overdraw_bottom_height_; } | 303 float overdraw_bottom_height() const { return overdraw_bottom_height_; } |
304 | 304 |
305 void SetOverhangUIResource(UIResourceId overhang_ui_resource_id, | 305 void SetOverhangUIResource(UIResourceId overhang_ui_resource_id, |
306 const gfx::Size& overhang_ui_resource_size); | 306 gfx::Size overhang_ui_resource_size); |
307 | 307 |
308 void SetDeviceScaleFactor(float device_scale_factor); | 308 void SetDeviceScaleFactor(float device_scale_factor); |
309 float device_scale_factor() const { return device_scale_factor_; } | 309 float device_scale_factor() const { return device_scale_factor_; } |
310 | 310 |
311 const gfx::Transform& DrawTransform() const; | 311 const gfx::Transform& DrawTransform() const; |
312 | 312 |
313 scoped_ptr<ScrollAndScaleSet> ProcessScrollDeltas(); | 313 scoped_ptr<ScrollAndScaleSet> ProcessScrollDeltas(); |
314 | 314 |
315 bool needs_animate_layers() const { | 315 bool needs_animate_layers() const { |
316 return !animation_registrar_->active_animation_controllers().empty(); | 316 return !animation_registrar_->active_animation_controllers().empty(); |
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
652 int id_; | 652 int id_; |
653 | 653 |
654 std::set<SwapPromiseMonitor*> swap_promise_monitor_; | 654 std::set<SwapPromiseMonitor*> swap_promise_monitor_; |
655 | 655 |
656 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 656 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
657 }; | 657 }; |
658 | 658 |
659 } // namespace cc | 659 } // namespace cc |
660 | 660 |
661 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 661 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
OLD | NEW |