Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(342)

Unified Diff: cc/resources/prioritized_tile_set.cc

Issue 366113002: cc: Do not cleanup tiles with raster tasks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use std::vector for released tiles. Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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]);

Powered by Google App Engine
This is Rietveld 408576698