Index: cc/resources/prioritized_tile_set.cc |
diff --git a/cc/resources/prioritized_tile_set.cc b/cc/resources/prioritized_tile_set.cc |
index b7b3b5a741eee424707201abc7453cfbb776d115..41e7867b635468a1302fd852483e04270be53bcd 100644 |
--- a/cc/resources/prioritized_tile_set.cc |
+++ b/cc/resources/prioritized_tile_set.cc |
@@ -81,6 +81,14 @@ void PrioritizedTileSet::Clear() { |
} |
} |
+bool PrioritizedTileSet::Empty() { |
vmpstr
2014/08/01 16:03:16
nit: I think the convention is to name this "IsEmp
sohanjg
2014/08/04 06:25:03
Done.
Renamed, std::vector seems to be using ::Emp
vmpstr
2014/08/04 16:04:40
Yeah cc containers or any thing that has a concept
|
+ for (int bin = 0; bin < NUM_BINS; ++bin) |
+ if (!tiles_[bin].empty()) |
+ return false; |
+ |
+ return true; |
+} |
+ |
void PrioritizedTileSet::SortBinIfNeeded(ManagedTileBin bin) { |
if (!bin_sorted_[bin]) { |
SortBinTiles(bin, &tiles_[bin]); |