| 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 #include "cc/tiles/tiling_set_raster_queue_all.h" | 5 #include "cc/tiles/tiling_set_raster_queue_all.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| 11 #include "cc/tiles/picture_layer_tiling_set.h" | 11 #include "cc/tiles/picture_layer_tiling_set.h" |
| 12 #include "cc/tiles/tile.h" | 12 #include "cc/tiles/tile.h" |
| 13 #include "cc/tiles/tile_priority.h" | 13 #include "cc/tiles/tile_priority.h" |
| 14 | 14 |
| 15 namespace cc { | 15 namespace cc { |
| 16 | 16 |
| 17 TilingSetRasterQueueAll::IterationStage::IterationStage( | 17 TilingSetRasterQueueAll::IterationStage::IterationStage( |
| 18 IteratorType type, | 18 IteratorType type, |
| 19 TilePriority::PriorityBin bin) | 19 TilePriority::PriorityBin bin) |
| 20 : iterator_type(type), tile_type(bin) { | 20 : iterator_type(type), tile_type(bin) { |
| 21 } | 21 } |
| 22 | 22 |
| 23 TilingSetRasterQueueAll::TilingSetRasterQueueAll( | 23 TilingSetRasterQueueAll::TilingSetRasterQueueAll( |
| 24 PictureLayerTilingSet* tiling_set, | 24 PictureLayerTilingSet* tiling_set, |
| 25 bool prioritize_low_res) | 25 bool prioritize_low_res, |
| 26 : tiling_set_(tiling_set), current_stage_(0) { | 26 bool is_drawing_layer) |
| 27 : tiling_set_(tiling_set), |
| 28 current_stage_(0), |
| 29 is_drawing_layer_(is_drawing_layer) { |
| 27 DCHECK(tiling_set_); | 30 DCHECK(tiling_set_); |
| 28 | 31 |
| 29 // Early out if the tiling set has no tilings. | 32 // Early out if the tiling set has no tilings. |
| 30 if (!tiling_set_->num_tilings()) | 33 if (!tiling_set_->num_tilings()) |
| 31 return; | 34 return; |
| 32 | 35 |
| 33 const PictureLayerTilingClient* client = tiling_set->client(); | 36 const PictureLayerTilingClient* client = tiling_set->client(); |
| 34 WhichTree tree = tiling_set->tree(); | 37 WhichTree tree = tiling_set->tree(); |
| 35 // Find high and low res tilings and initialize the iterators. | 38 // Find high and low res tilings and initialize the iterators. |
| 36 PictureLayerTiling* high_res_tiling = nullptr; | 39 PictureLayerTiling* high_res_tiling = nullptr; |
| (...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 453 current_tile_ = PrioritizedTile(); | 456 current_tile_ = PrioritizedTile(); |
| 454 return *this; | 457 return *this; |
| 455 } | 458 } |
| 456 current_tile_ = *eventually_iterator_; | 459 current_tile_ = *eventually_iterator_; |
| 457 break; | 460 break; |
| 458 } | 461 } |
| 459 return *this; | 462 return *this; |
| 460 } | 463 } |
| 461 | 464 |
| 462 } // namespace cc | 465 } // namespace cc |
| OLD | NEW |