| 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_TILING_SET_RASTER_QUEUE_ALL_H_ | 5 #ifndef CC_RESOURCES_TILING_SET_RASTER_QUEUE_ALL_H_ |
| 6 #define CC_RESOURCES_TILING_SET_RASTER_QUEUE_ALL_H_ | 6 #define CC_RESOURCES_TILING_SET_RASTER_QUEUE_ALL_H_ |
| 7 | 7 |
| 8 #include "cc/base/cc_export.h" | 8 #include "cc/base/cc_export.h" |
| 9 #include "cc/resources/picture_layer_tiling_set.h" | 9 #include "cc/resources/picture_layer_tiling_set.h" |
| 10 #include "cc/resources/tile.h" | 10 #include "cc/resources/tile.h" |
| 11 #include "cc/resources/tile_priority.h" | 11 #include "cc/resources/tile_priority.h" |
| 12 #include "cc/resources/tiling_set_raster_queue.h" | |
| 13 | 12 |
| 14 namespace cc { | 13 namespace cc { |
| 15 | 14 |
| 16 // This queue returns all tiles required to be rasterized from HIGH_RESOLUTION | 15 // This queue returns all tiles required to be rasterized from HIGH_RESOLUTION |
| 17 // and LOW_RESOLUTION tilings. | 16 // and LOW_RESOLUTION tilings. |
| 18 class CC_EXPORT TilingSetRasterQueueAll | 17 class CC_EXPORT TilingSetRasterQueueAll { |
| 19 : public NON_EXPORTED_BASE(TilingSetRasterQueue) { | |
| 20 public: | 18 public: |
| 21 TilingSetRasterQueueAll(PictureLayerTilingSet* tiling_set, | 19 TilingSetRasterQueueAll(PictureLayerTilingSet* tiling_set, |
| 22 bool prioritize_low_res); | 20 bool prioritize_low_res); |
| 23 ~TilingSetRasterQueueAll() override; | 21 ~TilingSetRasterQueueAll(); |
| 24 | 22 |
| 25 Tile* Top() override; | 23 Tile* Top(); |
| 26 const Tile* Top() const override; | 24 const Tile* Top() const; |
| 27 void Pop() override; | 25 void Pop(); |
| 28 bool IsEmpty() const override; | 26 bool IsEmpty() const; |
| 29 | 27 |
| 30 private: | 28 private: |
| 31 class TilingIterator { | 29 class TilingIterator { |
| 32 public: | 30 public: |
| 33 TilingIterator(); | 31 TilingIterator(); |
| 34 explicit TilingIterator(PictureLayerTiling* tiling, | 32 explicit TilingIterator(PictureLayerTiling* tiling, |
| 35 TilingData* tiling_data); | 33 TilingData* tiling_data); |
| 36 ~TilingIterator(); | 34 ~TilingIterator(); |
| 37 | 35 |
| 38 bool done() const { return current_tile_ == nullptr; } | 36 bool done() const { return current_tile_ == nullptr; } |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 size_t current_stage_; | 89 size_t current_stage_; |
| 92 | 90 |
| 93 // One low res stage, and three high res stages. | 91 // One low res stage, and three high res stages. |
| 94 IterationStage stages_[4]; | 92 IterationStage stages_[4]; |
| 95 TilingIterator iterators_[NUM_ITERATORS]; | 93 TilingIterator iterators_[NUM_ITERATORS]; |
| 96 }; | 94 }; |
| 97 | 95 |
| 98 } // namespace cc | 96 } // namespace cc |
| 99 | 97 |
| 100 #endif // CC_RESOURCES_TILING_SET_RASTER_QUEUE_ALL_H_ | 98 #endif // CC_RESOURCES_TILING_SET_RASTER_QUEUE_ALL_H_ |
| OLD | NEW |