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_RASTER_TILE_PRIORITY_QUEUE_H_ | 5 #ifndef CC_RESOURCES_RASTER_TILE_PRIORITY_QUEUE_H_ |
6 #define CC_RESOURCES_RASTER_TILE_PRIORITY_QUEUE_H_ | 6 #define CC_RESOURCES_RASTER_TILE_PRIORITY_QUEUE_H_ |
7 | 7 |
8 #include <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 30 matching lines...) Expand all Loading... | |
41 void Build(const std::vector<PictureLayerImpl::Pair>& paired_layers, | 41 void Build(const std::vector<PictureLayerImpl::Pair>& paired_layers, |
42 TreePriority tree_priority); | 42 TreePriority tree_priority); |
43 void Reset(); | 43 void Reset(); |
44 | 44 |
45 bool IsEmpty() const; | 45 bool IsEmpty() const; |
46 Tile* Top(); | 46 Tile* Top(); |
47 void Pop(); | 47 void Pop(); |
48 | 48 |
49 private: | 49 private: |
50 std::vector<PairedPictureLayerQueue> paired_queues_; | 50 std::vector<PairedPictureLayerQueue> paired_queues_; |
51 std::vector<PairedPictureLayerQueue*> paired_queues_heap_; | |
reveman
2014/08/04 14:37:16
Please use ScopedPtrVector unless that is signific
vmpstr
2014/08/04 16:46:26
Done.
| |
51 TreePriority tree_priority_; | 52 TreePriority tree_priority_; |
52 | 53 |
53 DISALLOW_COPY_AND_ASSIGN(RasterTilePriorityQueue); | 54 DISALLOW_COPY_AND_ASSIGN(RasterTilePriorityQueue); |
54 }; | 55 }; |
55 | 56 |
56 } // namespace cc | 57 } // namespace cc |
57 | 58 |
58 #endif // CC_RESOURCES_RASTER_TILE_PRIORITY_QUEUE_H_ | 59 #endif // CC_RESOURCES_RASTER_TILE_PRIORITY_QUEUE_H_ |
OLD | NEW |