Chromium Code Reviews| Index: cc/resources/tiling_set_raster_queue_all.h |
| diff --git a/cc/resources/tiling_set_raster_queue.h b/cc/resources/tiling_set_raster_queue_all.h |
| similarity index 73% |
| copy from cc/resources/tiling_set_raster_queue.h |
| copy to cc/resources/tiling_set_raster_queue_all.h |
| index e3250369fd60fc2055f7ef423a42c107d9df3571..bdc48211302d5a0174cfe90b7348c4ca9fbfa5b9 100644 |
| --- a/cc/resources/tiling_set_raster_queue.h |
| +++ b/cc/resources/tiling_set_raster_queue_all.h |
| @@ -2,27 +2,29 @@ |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| -#ifndef CC_RESOURCES_TILING_SET_RASTER_QUEUE_H_ |
| -#define CC_RESOURCES_TILING_SET_RASTER_QUEUE_H_ |
| +#ifndef CC_RESOURCES_TILING_SET_RASTER_QUEUE_ALL_H_ |
| +#define CC_RESOURCES_TILING_SET_RASTER_QUEUE_ALL_H_ |
| #include "cc/base/cc_export.h" |
| #include "cc/resources/picture_layer_tiling_set.h" |
| #include "cc/resources/tile.h" |
| #include "cc/resources/tile_priority.h" |
| +#include "cc/resources/tiling_set_raster_queue.h" |
| namespace cc { |
| -class CC_EXPORT TilingSetRasterQueue { |
| +// This queue returns all tiles required to be rasterized from HIGH_RESOLUTION |
| +// and LOW_RESOLUTION tilings. |
| +class CC_EXPORT TilingSetRasterQueueAll : public TilingSetRasterQueue { |
| public: |
| - TilingSetRasterQueue(); |
| - TilingSetRasterQueue(PictureLayerTilingSet* tiling_set, |
| - bool prioritize_low_res); |
| - ~TilingSetRasterQueue(); |
| + TilingSetRasterQueueAll(PictureLayerTilingSet* tiling_set, |
| + bool prioritize_low_res); |
| + ~TilingSetRasterQueueAll() override; |
| - Tile* Top(); |
| - const Tile* Top() const; |
| - void Pop(); |
| - bool IsEmpty() const; |
| + Tile* Top() override; |
| + const Tile* Top() const override; |
| + void Pop() override; |
| + bool IsEmpty() const override; |
| private: |
| class TilingIterator { |
| @@ -32,7 +34,7 @@ class CC_EXPORT TilingSetRasterQueue { |
| TilingData* tiling_data); |
| ~TilingIterator(); |
| - operator bool() const { return !!current_tile_; } |
| + bool done() const { return current_tile_ == nullptr; } |
|
danakj
2015/01/12 18:23:13
One less operator :)
|
| const Tile* operator*() const { return current_tile_; } |
| Tile* operator*() { return current_tile_; } |
| TilePriority::PriorityBin type() const { |
| @@ -94,4 +96,4 @@ class CC_EXPORT TilingSetRasterQueue { |
| } // namespace cc |
| -#endif // CC_RESOURCES_TILING_SET_RASTER_QUEUE_H_ |
| +#endif // CC_RESOURCES_TILING_SET_RASTER_QUEUE_ALL_H_ |