Index: cc/resources/tiling_set_raster_queue.h |
diff --git a/cc/resources/tiling_set_raster_queue.h b/cc/resources/tiling_set_raster_queue.h |
index 58faa8a78c90fc17fe83f11b39a38695f5b1e869..e9ef44c868f292eac88dd977e693d05e17bc70b4 100644 |
--- a/cc/resources/tiling_set_raster_queue.h |
+++ b/cc/resources/tiling_set_raster_queue.h |
@@ -6,39 +6,19 @@ |
#define CC_RESOURCES_TILING_SET_RASTER_QUEUE_H_ |
#include "cc/base/cc_export.h" |
-#include "cc/resources/picture_layer_tiling_set.h" |
namespace cc { |
+class Tile; |
class CC_EXPORT TilingSetRasterQueue { |
public: |
- TilingSetRasterQueue(); |
- TilingSetRasterQueue(PictureLayerTilingSet* tiling_set, |
- bool prioritize_low_res); |
- ~TilingSetRasterQueue(); |
+ TilingSetRasterQueue() = default; |
+ virtual ~TilingSetRasterQueue() = default; |
- Tile* Top(); |
- const Tile* Top() const; |
- void Pop(); |
- bool IsEmpty() const; |
- |
- private: |
- enum IteratorType { LOW_RES, HIGH_RES, NUM_ITERATORS }; |
- |
- void AdvanceToNextStage(); |
- |
- PictureLayerTilingSet* tiling_set_; |
- |
- struct IterationStage { |
- IteratorType iterator_type; |
- TilePriority::PriorityBin tile_type; |
- }; |
- |
- size_t current_stage_; |
- |
- // One low res stage, and three high res stages. |
- IterationStage stages_[4]; |
- PictureLayerTiling::TilingRasterTileIterator iterators_[NUM_ITERATORS]; |
+ virtual Tile* Top() = 0; |
+ virtual const Tile* Top() const = 0; |
+ virtual void Pop() = 0; |
+ virtual bool IsEmpty() const = 0; |
}; |
} // namespace cc |