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; |
544 bool opaque; | 545 bool opaque; |
545 }; | 546 }; |
546 | 547 |
547 // Returns the amount of delta that can be applied to scroll_node, taking | 548 // Returns the amount of delta that can be applied to scroll_node, taking |
548 // page scale into account. | 549 // page scale into account. |
549 gfx::Vector2dF ComputeScrollDelta(ScrollNode* scroll_node, | 550 gfx::Vector2dF ComputeScrollDelta(ScrollNode* scroll_node, |
550 const gfx::Vector2dF& delta); | 551 const gfx::Vector2dF& delta); |
551 | 552 |
552 void ScheduleMicroBenchmark(std::unique_ptr<MicroBenchmarkImpl> benchmark); | 553 void ScheduleMicroBenchmark(std::unique_ptr<MicroBenchmarkImpl> benchmark); |
553 | 554 |
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
839 | 840 |
840 std::unique_ptr<PendingTreeDurationHistogramTimer> | 841 std::unique_ptr<PendingTreeDurationHistogramTimer> |
841 pending_tree_duration_timer_; | 842 pending_tree_duration_timer_; |
842 | 843 |
843 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 844 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
844 }; | 845 }; |
845 | 846 |
846 } // namespace cc | 847 } // namespace cc |
847 | 848 |
848 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 849 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
OLD | NEW |