| 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 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 534 virtual void DeleteUIResource(UIResourceId uid); | 534 virtual void DeleteUIResource(UIResourceId uid); |
| 535 void EvictAllUIResources(); | 535 void EvictAllUIResources(); |
| 536 bool EvictedUIResourcesExist() const; | 536 bool EvictedUIResourcesExist() const; |
| 537 | 537 |
| 538 virtual ResourceId ResourceIdForUIResource(UIResourceId uid) const; | 538 virtual ResourceId ResourceIdForUIResource(UIResourceId uid) const; |
| 539 | 539 |
| 540 virtual bool IsUIResourceOpaque(UIResourceId uid) const; | 540 virtual bool IsUIResourceOpaque(UIResourceId uid) const; |
| 541 | 541 |
| 542 struct UIResourceData { | 542 struct UIResourceData { |
| 543 ResourceId resource_id; | 543 ResourceId resource_id; |
| 544 gfx::Size size; | |
| 545 bool opaque; | 544 bool opaque; |
| 546 }; | 545 }; |
| 547 | 546 |
| 548 // Returns the amount of delta that can be applied to scroll_node, taking | 547 // Returns the amount of delta that can be applied to scroll_node, taking |
| 549 // page scale into account. | 548 // page scale into account. |
| 550 gfx::Vector2dF ComputeScrollDelta(ScrollNode* scroll_node, | 549 gfx::Vector2dF ComputeScrollDelta(ScrollNode* scroll_node, |
| 551 const gfx::Vector2dF& delta); | 550 const gfx::Vector2dF& delta); |
| 552 | 551 |
| 553 void ScheduleMicroBenchmark(std::unique_ptr<MicroBenchmarkImpl> benchmark); | 552 void ScheduleMicroBenchmark(std::unique_ptr<MicroBenchmarkImpl> benchmark); |
| 554 | 553 |
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 840 | 839 |
| 841 std::unique_ptr<PendingTreeDurationHistogramTimer> | 840 std::unique_ptr<PendingTreeDurationHistogramTimer> |
| 842 pending_tree_duration_timer_; | 841 pending_tree_duration_timer_; |
| 843 | 842 |
| 844 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 843 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 845 }; | 844 }; |
| 846 | 845 |
| 847 } // namespace cc | 846 } // namespace cc |
| 848 | 847 |
| 849 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 848 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |