OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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/resources/picture_layer_tiling.h" | 5 #include "cc/resources/picture_layer_tiling.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <cmath> | 8 #include <cmath> |
9 #include <limits> | 9 #include <limits> |
10 | 10 |
(...skipping 1077 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1088 operator++() { | 1088 operator++() { |
1089 DCHECK(*this); | 1089 DCHECK(*this); |
1090 do { | 1090 do { |
1091 ++current_eviction_tiles_index_; | 1091 ++current_eviction_tiles_index_; |
1092 } while (current_eviction_tiles_index_ != eviction_tiles_->size() && | 1092 } while (current_eviction_tiles_index_ != eviction_tiles_->size() && |
1093 !(*eviction_tiles_)[current_eviction_tiles_index_]->HasResources()); | 1093 !(*eviction_tiles_)[current_eviction_tiles_index_]->HasResources()); |
1094 | 1094 |
1095 return *this; | 1095 return *this; |
1096 } | 1096 } |
1097 | 1097 |
| 1098 int PictureLayerTiling::tiles_size() const { |
| 1099 return tiles_.size(); |
| 1100 } |
| 1101 |
1098 } // namespace cc | 1102 } // namespace cc |
OLD | NEW |