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_RESOURCES_RASTER_TILE_PRIORITY_QUEUE_REQUIRED_H_ | 5 #ifndef CC_RESOURCES_RASTER_TILE_PRIORITY_QUEUE_REQUIRED_H_ |
6 #define CC_RESOURCES_RASTER_TILE_PRIORITY_QUEUE_REQUIRED_H_ | 6 #define CC_RESOURCES_RASTER_TILE_PRIORITY_QUEUE_REQUIRED_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
| 10 #include "base/containers/hash_tables.h" |
10 #include "cc/layers/picture_layer_impl.h" | 11 #include "cc/layers/picture_layer_impl.h" |
11 #include "cc/resources/raster_tile_priority_queue.h" | 12 #include "cc/resources/raster_tile_priority_queue.h" |
12 #include "cc/resources/tiling_set_raster_queue_required.h" | 13 #include "cc/resources/tiling_set_raster_queue_required.h" |
13 | 14 |
14 namespace cc { | 15 namespace cc { |
15 class Tile; | 16 class Tile; |
16 | 17 |
17 class RasterTilePriorityQueueRequired : public RasterTilePriorityQueue { | 18 class RasterTilePriorityQueueRequired : public RasterTilePriorityQueue { |
18 public: | 19 public: |
19 RasterTilePriorityQueueRequired(); | 20 RasterTilePriorityQueueRequired(); |
20 ~RasterTilePriorityQueueRequired() override; | 21 ~RasterTilePriorityQueueRequired() override; |
21 | 22 |
22 bool IsEmpty() const override; | 23 bool IsEmpty() const override; |
23 Tile* Top() override; | 24 Tile* Top() override; |
24 void Pop() override; | 25 void Pop() override; |
25 | 26 |
26 private: | 27 private: |
27 friend class RasterTilePriorityQueue; | 28 friend class RasterTilePriorityQueue; |
28 | 29 |
29 void Build(const std::vector<PictureLayerImpl::Pair>& paired_layers, | 30 void Build(const base::hash_map<int, PictureLayerTilingSet::Pair>& |
| 31 paired_picture_layer_tiling_sets, |
| 32 bool has_pending_tree, |
30 Type type); | 33 Type type); |
31 | 34 |
32 ScopedPtrVector<TilingSetRasterQueueRequired> tiling_set_queues_; | 35 ScopedPtrVector<TilingSetRasterQueueRequired> tiling_set_queues_; |
33 | 36 |
34 DISALLOW_COPY_AND_ASSIGN(RasterTilePriorityQueueRequired); | 37 DISALLOW_COPY_AND_ASSIGN(RasterTilePriorityQueueRequired); |
35 }; | 38 }; |
36 | 39 |
37 } // namespace cc | 40 } // namespace cc |
38 | 41 |
39 #endif // CC_RESOURCES_RASTER_TILE_PRIORITY_QUEUE_REQUIRED_H_ | 42 #endif // CC_RESOURCES_RASTER_TILE_PRIORITY_QUEUE_REQUIRED_H_ |
OLD | NEW |