| 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_TILES_EVICTION_TILE_PRIORITY_QUEUE_H_ | 5 #ifndef CC_TILES_EVICTION_TILE_PRIORITY_QUEUE_H_ |
| 6 #define CC_TILES_EVICTION_TILE_PRIORITY_QUEUE_H_ | 6 #define CC_TILES_EVICTION_TILE_PRIORITY_QUEUE_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 | 24 |
| 25 void Build(const std::vector<PictureLayerImpl*>& active_layers, | 25 void Build(const std::vector<PictureLayerImpl*>& active_layers, |
| 26 const std::vector<PictureLayerImpl*>& pending_layers, | 26 const std::vector<PictureLayerImpl*>& pending_layers, |
| 27 TreePriority tree_priority); | 27 TreePriority tree_priority); |
| 28 | 28 |
| 29 bool IsEmpty() const; | 29 bool IsEmpty() const; |
| 30 const PrioritizedTile& Top() const; | 30 const PrioritizedTile& Top() const; |
| 31 void Pop(); | 31 void Pop(); |
| 32 | 32 |
| 33 private: | 33 private: |
| 34 ScopedPtrVector<TilingSetEvictionQueue>& GetNextQueues(); | 34 std::vector<scoped_ptr<TilingSetEvictionQueue>>& GetNextQueues(); |
| 35 const ScopedPtrVector<TilingSetEvictionQueue>& GetNextQueues() const; | 35 const std::vector<scoped_ptr<TilingSetEvictionQueue>>& GetNextQueues() const; |
| 36 | 36 |
| 37 ScopedPtrVector<TilingSetEvictionQueue> active_queues_; | 37 std::vector<scoped_ptr<TilingSetEvictionQueue>> active_queues_; |
| 38 ScopedPtrVector<TilingSetEvictionQueue> pending_queues_; | 38 std::vector<scoped_ptr<TilingSetEvictionQueue>> pending_queues_; |
| 39 TreePriority tree_priority_; | 39 TreePriority tree_priority_; |
| 40 | 40 |
| 41 DISALLOW_COPY_AND_ASSIGN(EvictionTilePriorityQueue); | 41 DISALLOW_COPY_AND_ASSIGN(EvictionTilePriorityQueue); |
| 42 }; | 42 }; |
| 43 | 43 |
| 44 } // namespace cc | 44 } // namespace cc |
| 45 | 45 |
| 46 #endif // CC_TILES_EVICTION_TILE_PRIORITY_QUEUE_H_ | 46 #endif // CC_TILES_EVICTION_TILE_PRIORITY_QUEUE_H_ |
| OLD | NEW |