Index: cc/resources/picture_layer_tiling.cc |
diff --git a/cc/resources/picture_layer_tiling.cc b/cc/resources/picture_layer_tiling.cc |
index 9d8ea84e6966d715afecaff0588fc97e584c2b7c..e9e3b86180a0dba8a297dc77235f6f84224fe191 100644 |
--- a/cc/resources/picture_layer_tiling.cc |
+++ b/cc/resources/picture_layer_tiling.cc |
@@ -1216,50 +1216,4 @@ operator++() { |
return *this; |
} |
-PictureLayerTiling::TilingEvictionTileIterator::TilingEvictionTileIterator() |
- : eviction_tiles_(NULL), current_eviction_tiles_index_(0u) { |
-} |
- |
-PictureLayerTiling::TilingEvictionTileIterator::TilingEvictionTileIterator( |
- PictureLayerTiling* tiling, |
- TreePriority tree_priority, |
- EvictionCategory category) |
- : eviction_tiles_(tiling->GetEvictionTiles(tree_priority, category)), |
- // Note: initializing to "0 - 1" works as overflow is well defined for |
- // unsigned integers. |
- current_eviction_tiles_index_(static_cast<size_t>(0) - 1) { |
- DCHECK(eviction_tiles_); |
- ++(*this); |
-} |
- |
-PictureLayerTiling::TilingEvictionTileIterator::~TilingEvictionTileIterator() { |
-} |
- |
-PictureLayerTiling::TilingEvictionTileIterator::operator bool() const { |
- return eviction_tiles_ && |
- current_eviction_tiles_index_ != eviction_tiles_->size(); |
-} |
- |
-Tile* PictureLayerTiling::TilingEvictionTileIterator::operator*() { |
- DCHECK(*this); |
- return (*eviction_tiles_)[current_eviction_tiles_index_]; |
-} |
- |
-const Tile* PictureLayerTiling::TilingEvictionTileIterator::operator*() const { |
- DCHECK(*this); |
- return (*eviction_tiles_)[current_eviction_tiles_index_]; |
-} |
- |
-PictureLayerTiling::TilingEvictionTileIterator& |
-PictureLayerTiling::TilingEvictionTileIterator:: |
-operator++() { |
- DCHECK(*this); |
- do { |
- ++current_eviction_tiles_index_; |
- } while (current_eviction_tiles_index_ != eviction_tiles_->size() && |
- !(*eviction_tiles_)[current_eviction_tiles_index_]->HasResources()); |
- |
- return *this; |
-} |
- |
} // namespace cc |