Chromium Code Reviews| 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 <set> | 8 #include <set> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 10 matching lines...) Expand all Loading... | |
| 21 PairedPictureLayerQueue(); | 21 PairedPictureLayerQueue(); |
| 22 PairedPictureLayerQueue(const PictureLayerImpl::Pair& layer_pair, | 22 PairedPictureLayerQueue(const PictureLayerImpl::Pair& layer_pair, |
| 23 TreePriority tree_priority); | 23 TreePriority tree_priority); |
| 24 ~PairedPictureLayerQueue(); | 24 ~PairedPictureLayerQueue(); |
| 25 | 25 |
| 26 bool IsEmpty() const; | 26 bool IsEmpty() const; |
| 27 Tile* Top(TreePriority tree_priority); | 27 Tile* Top(TreePriority tree_priority); |
| 28 void Pop(TreePriority tree_priority); | 28 void Pop(TreePriority tree_priority); |
| 29 | 29 |
| 30 WhichTree NextTileIteratorTree(TreePriority tree_priority) const; | 30 WhichTree NextTileIteratorTree(TreePriority tree_priority) const; |
| 31 void SkipNextSharedTileReturnedByTwin(TreePriority tree_priority); | |
|
reveman
2014/10/10 14:27:23
I'm a bit confused by this name. Sounds like it wi
vmpstr
2014/10/10 15:24:05
No, I renamed to SkipTilesReturnedByTwin... It jus
| |
| 31 | 32 |
| 32 PictureLayerImpl::LayerRasterTileIterator active_iterator; | 33 PictureLayerImpl::LayerRasterTileIterator active_iterator; |
| 33 PictureLayerImpl::LayerRasterTileIterator pending_iterator; | 34 PictureLayerImpl::LayerRasterTileIterator pending_iterator; |
| 34 bool has_both_layers; | 35 bool has_both_layers; |
| 35 | 36 |
| 36 // Set of returned tiles (excluding the current one) for DCHECKing. | 37 // Set of returned tiles (excluding the current one) for DCHECKing. |
| 37 std::set<const Tile*> returned_tiles_for_debug; | 38 std::set<const Tile*> returned_tiles_for_debug; |
| 38 }; | 39 }; |
| 39 | 40 |
| 40 RasterTilePriorityQueue(); | 41 RasterTilePriorityQueue(); |
| (...skipping 13 matching lines...) Expand all Loading... | |
| 54 // objects directly (ie std::vector<PairedPictureLayerQueue>. | 55 // objects directly (ie std::vector<PairedPictureLayerQueue>. |
| 55 ScopedPtrVector<PairedPictureLayerQueue> paired_queues_; | 56 ScopedPtrVector<PairedPictureLayerQueue> paired_queues_; |
| 56 TreePriority tree_priority_; | 57 TreePriority tree_priority_; |
| 57 | 58 |
| 58 DISALLOW_COPY_AND_ASSIGN(RasterTilePriorityQueue); | 59 DISALLOW_COPY_AND_ASSIGN(RasterTilePriorityQueue); |
| 59 }; | 60 }; |
| 60 | 61 |
| 61 } // namespace cc | 62 } // namespace cc |
| 62 | 63 |
| 63 #endif // CC_RESOURCES_RASTER_TILE_PRIORITY_QUEUE_H_ | 64 #endif // CC_RESOURCES_RASTER_TILE_PRIORITY_QUEUE_H_ |
| OLD | NEW |