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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 // TODO(vmpstr): This is potentially unnecessary if it becomes the case that | 50 // TODO(vmpstr): This is potentially unnecessary if it becomes the case that |
51 // PairedPictureLayerQueue is fast enough to copy. In that case, we can use | 51 // PairedPictureLayerQueue is fast enough to copy. In that case, we can use |
52 // objects directly (ie std::vector<PairedPictureLayerQueue>. | 52 // objects directly (ie std::vector<PairedPictureLayerQueue>. |
53 ScopedPtrVector<PairedPictureLayerQueue> paired_queues_heap_; | 53 ScopedPtrVector<PairedPictureLayerQueue> paired_queues_; |
54 TreePriority tree_priority_; | 54 TreePriority tree_priority_; |
55 | 55 |
56 DISALLOW_COPY_AND_ASSIGN(RasterTilePriorityQueue); | 56 DISALLOW_COPY_AND_ASSIGN(RasterTilePriorityQueue); |
57 }; | 57 }; |
58 | 58 |
59 } // namespace cc | 59 } // namespace cc |
60 | 60 |
61 #endif // CC_RESOURCES_RASTER_TILE_PRIORITY_QUEUE_H_ | 61 #endif // CC_RESOURCES_RASTER_TILE_PRIORITY_QUEUE_H_ |
OLD | NEW |