OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_RASTER_TILE_PRIORITY_QUEUE_ALL_H_ | 5 #ifndef CC_TILES_RASTER_TILE_PRIORITY_QUEUE_ALL_H_ |
6 #define CC_TILES_RASTER_TILE_PRIORITY_QUEUE_ALL_H_ | 6 #define CC_TILES_RASTER_TILE_PRIORITY_QUEUE_ALL_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 15 matching lines...) Expand all Loading... |
26 const PrioritizedTile& Top() const override; | 26 const PrioritizedTile& Top() const override; |
27 void Pop() override; | 27 void Pop() override; |
28 | 28 |
29 private: | 29 private: |
30 friend class RasterTilePriorityQueue; | 30 friend class RasterTilePriorityQueue; |
31 | 31 |
32 void Build(const std::vector<PictureLayerImpl*>& active_layers, | 32 void Build(const std::vector<PictureLayerImpl*>& active_layers, |
33 const std::vector<PictureLayerImpl*>& pending_layers, | 33 const std::vector<PictureLayerImpl*>& pending_layers, |
34 TreePriority tree_priority); | 34 TreePriority tree_priority); |
35 | 35 |
36 ScopedPtrVector<TilingSetRasterQueueAll>& GetNextQueues(); | 36 std::vector<scoped_ptr<TilingSetRasterQueueAll>>& GetNextQueues(); |
37 const ScopedPtrVector<TilingSetRasterQueueAll>& GetNextQueues() const; | 37 const std::vector<scoped_ptr<TilingSetRasterQueueAll>>& GetNextQueues() const; |
38 | 38 |
39 ScopedPtrVector<TilingSetRasterQueueAll> active_queues_; | 39 std::vector<scoped_ptr<TilingSetRasterQueueAll>> active_queues_; |
40 ScopedPtrVector<TilingSetRasterQueueAll> pending_queues_; | 40 std::vector<scoped_ptr<TilingSetRasterQueueAll>> pending_queues_; |
41 TreePriority tree_priority_; | 41 TreePriority tree_priority_; |
42 | 42 |
43 DISALLOW_COPY_AND_ASSIGN(RasterTilePriorityQueueAll); | 43 DISALLOW_COPY_AND_ASSIGN(RasterTilePriorityQueueAll); |
44 }; | 44 }; |
45 | 45 |
46 } // namespace cc | 46 } // namespace cc |
47 | 47 |
48 #endif // CC_TILES_RASTER_TILE_PRIORITY_QUEUE_ALL_H_ | 48 #endif // CC_TILES_RASTER_TILE_PRIORITY_QUEUE_ALL_H_ |
OLD | NEW |