| 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 "base/containers/stack_container.h" | 8 #include "base/containers/stack_container.h" |
| 9 #include "cc/base/cc_export.h" | 9 #include "cc/base/cc_export.h" |
| 10 #include "cc/resources/picture_layer_tiling_set.h" | 10 #include "cc/resources/picture_layer_tiling_set.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 OnePriorityRectIterator(); | 33 OnePriorityRectIterator(); |
| 34 OnePriorityRectIterator(PictureLayerTiling* tiling, | 34 OnePriorityRectIterator(PictureLayerTiling* tiling, |
| 35 TilingData* tiling_data); | 35 TilingData* tiling_data); |
| 36 | 36 |
| 37 bool done() const { return !current_tile_.tile(); } | 37 bool done() const { return !current_tile_.tile(); } |
| 38 const PrioritizedTile& operator*() const { return current_tile_; } | 38 const PrioritizedTile& operator*() const { return current_tile_; } |
| 39 | 39 |
| 40 protected: | 40 protected: |
| 41 ~OnePriorityRectIterator() = default; | 41 ~OnePriorityRectIterator() = default; |
| 42 bool TileNeedsRaster(Tile* tile) const { | 42 bool TileNeedsRaster(Tile* tile) const { |
| 43 return tile->NeedsRaster() && !tiling_->IsTileOccluded(tile); | 43 return tile->draw_info().NeedsRaster() && !tiling_->IsTileOccluded(tile); |
| 44 } | 44 } |
| 45 | 45 |
| 46 template <typename TilingIteratorType> | 46 template <typename TilingIteratorType> |
| 47 void AdvanceToNextTile(TilingIteratorType* iterator); | 47 void AdvanceToNextTile(TilingIteratorType* iterator); |
| 48 template <typename TilingIteratorType> | 48 template <typename TilingIteratorType> |
| 49 bool GetFirstTileAndCheckIfValid(TilingIteratorType* iterator); | 49 bool GetFirstTileAndCheckIfValid(TilingIteratorType* iterator); |
| 50 | 50 |
| 51 PrioritizedTile current_tile_; | 51 PrioritizedTile current_tile_; |
| 52 PictureLayerTiling* tiling_; | 52 PictureLayerTiling* tiling_; |
| 53 TilingData* tiling_data_; | 53 TilingData* tiling_data_; |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 // ideal pending high res. | 198 // ideal pending high res. |
| 199 base::StackVector<IterationStage, 6> stages_; | 199 base::StackVector<IterationStage, 6> stages_; |
| 200 TilingIterator iterators_[NUM_ITERATORS]; | 200 TilingIterator iterators_[NUM_ITERATORS]; |
| 201 | 201 |
| 202 DISALLOW_COPY_AND_ASSIGN(TilingSetRasterQueueAll); | 202 DISALLOW_COPY_AND_ASSIGN(TilingSetRasterQueueAll); |
| 203 }; | 203 }; |
| 204 | 204 |
| 205 } // namespace cc | 205 } // namespace cc |
| 206 | 206 |
| 207 #endif // CC_RESOURCES_TILING_SET_RASTER_QUEUE_ALL_H_ | 207 #endif // CC_RESOURCES_TILING_SET_RASTER_QUEUE_ALL_H_ |
| OLD | NEW |