| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <bitset> | 10 #include <bitset> |
| (...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 456 | 456 |
| 457 virtual void SetVisible(bool visible); | 457 virtual void SetVisible(bool visible); |
| 458 bool visible() const { return visible_; } | 458 bool visible() const { return visible_; } |
| 459 | 459 |
| 460 void SetNeedsCommit() { client_->SetNeedsCommitOnImplThread(); } | 460 void SetNeedsCommit() { client_->SetNeedsCommitOnImplThread(); } |
| 461 void SetNeedsOneBeginImplFrame(); | 461 void SetNeedsOneBeginImplFrame(); |
| 462 void SetNeedsRedraw(); | 462 void SetNeedsRedraw(); |
| 463 | 463 |
| 464 ManagedMemoryPolicy ActualManagedMemoryPolicy() const; | 464 ManagedMemoryPolicy ActualManagedMemoryPolicy() const; |
| 465 | 465 |
| 466 size_t memory_allocation_limit_bytes() const; | |
| 467 | |
| 468 void SetViewportSize(const gfx::Size& device_viewport_size); | 466 void SetViewportSize(const gfx::Size& device_viewport_size); |
| 469 gfx::Size device_viewport_size() const { return device_viewport_size_; } | 467 gfx::Size device_viewport_size() const { return device_viewport_size_; } |
| 470 | 468 |
| 471 const gfx::Transform& DrawTransform() const; | 469 const gfx::Transform& DrawTransform() const; |
| 472 | 470 |
| 473 std::unique_ptr<BeginFrameCallbackList> ProcessLayerTreeMutations(); | 471 std::unique_ptr<BeginFrameCallbackList> ProcessLayerTreeMutations(); |
| 474 | 472 |
| 475 std::unique_ptr<ScrollAndScaleSet> ProcessScrollDeltas(); | 473 std::unique_ptr<ScrollAndScaleSet> ProcessScrollDeltas(); |
| 476 | 474 |
| 477 void set_max_memory_needed_bytes(size_t bytes) { | 475 void set_max_memory_needed_bytes(size_t bytes) { |
| (...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 845 | 843 |
| 846 std::unique_ptr<PendingTreeDurationHistogramTimer> | 844 std::unique_ptr<PendingTreeDurationHistogramTimer> |
| 847 pending_tree_duration_timer_; | 845 pending_tree_duration_timer_; |
| 848 | 846 |
| 849 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 847 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 850 }; | 848 }; |
| 851 | 849 |
| 852 } // namespace cc | 850 } // namespace cc |
| 853 | 851 |
| 854 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 852 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |