OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_RESOURCES_TILING_SET_EVICTION_QUEUE_H_ | 5 #ifndef CC_RESOURCES_TILING_SET_EVICTION_QUEUE_H_ |
6 #define CC_RESOURCES_TILING_SET_EVICTION_QUEUE_H_ | 6 #define CC_RESOURCES_TILING_SET_EVICTION_QUEUE_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "cc/base/cc_export.h" | 10 #include "cc/base/cc_export.h" |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 // * If tree priority is NEW_CONTENT_TAKES_PRIORITY, this happens for | 67 // * If tree priority is NEW_CONTENT_TAKES_PRIORITY, this happens for |
68 // an active tree eviction queue (because priority for tree priority is | 68 // an active tree eviction queue (because priority for tree priority is |
69 // the pending priority). | 69 // the pending priority). |
70 // * If tree_priority is SMOOTHNESS_TAKES_PRIORITY, this happens for a pending | 70 // * If tree_priority is SMOOTHNESS_TAKES_PRIORITY, this happens for a pending |
71 // tree eviction queue (because priority for tree priority is the active | 71 // tree eviction queue (because priority for tree priority is the active |
72 // priority). | 72 // priority). |
73 // Those skipped shared out of order tiles are when returned only by the twin | 73 // Those skipped shared out of order tiles are when returned only by the twin |
74 // eviction queue. | 74 // eviction queue. |
75 class CC_EXPORT TilingSetEvictionQueue { | 75 class CC_EXPORT TilingSetEvictionQueue { |
76 public: | 76 public: |
77 TilingSetEvictionQueue(); | |
78 TilingSetEvictionQueue(PictureLayerTilingSet* tiling_set, | 77 TilingSetEvictionQueue(PictureLayerTilingSet* tiling_set, |
79 TreePriority tree_priority, | 78 TreePriority tree_priority, |
80 bool skip_shared_out_of_order_tiles); | 79 bool skip_shared_out_of_order_tiles); |
81 ~TilingSetEvictionQueue(); | 80 ~TilingSetEvictionQueue(); |
82 | 81 |
83 Tile* Top(); | 82 Tile* Top(); |
84 const Tile* Top() const; | 83 const Tile* Top() const; |
85 void Pop(); | 84 void Pop(); |
86 bool IsEmpty() const; | 85 bool IsEmpty() const; |
87 | 86 |
(...skipping 24 matching lines...) Expand all Loading... |
112 Tile* current_eviction_tile_; | 111 Tile* current_eviction_tile_; |
113 | 112 |
114 TilingData::ReverseSpiralDifferenceIterator spiral_iterator_; | 113 TilingData::ReverseSpiralDifferenceIterator spiral_iterator_; |
115 TilingData::Iterator visible_iterator_; | 114 TilingData::Iterator visible_iterator_; |
116 std::vector<Tile*> unoccluded_now_tiles_; | 115 std::vector<Tile*> unoccluded_now_tiles_; |
117 }; | 116 }; |
118 | 117 |
119 } // namespace cc | 118 } // namespace cc |
120 | 119 |
121 #endif // CC_RESOURCES_TILING_SET_EVICTION_QUEUE_H_ | 120 #endif // CC_RESOURCES_TILING_SET_EVICTION_QUEUE_H_ |
OLD | NEW |