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

Unified Diff: cc/resources/picture_layer_tiling_set.cc

Issue 1132443003: cc: Move raster_source from Tile to PrioritizedTile (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rename var Created 5 years, 7 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
« no previous file with comments | « cc/resources/picture_layer_tiling_set.h ('k') | cc/resources/prioritized_tile.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/picture_layer_tiling_set.cc
diff --git a/cc/resources/picture_layer_tiling_set.cc b/cc/resources/picture_layer_tiling_set.cc
index 6f540bfacfb93f0fdbd9f924d1cf25a446d1b077..440c9f126f37bbb078d0fd326e6a975aeb6e7900 100644
--- a/cc/resources/picture_layer_tiling_set.cc
+++ b/cc/resources/picture_layer_tiling_set.cc
@@ -112,7 +112,6 @@ void PictureLayerTilingSet::UpdateTilingsToCurrentRasterSourceForActivation(
tiling->SetRasterSourceAndResize(raster_source);
tiling->Invalidate(layer_invalidation);
- tiling->SetRasterSourceOnTiles();
// This is needed for cases where the live tiles rect didn't change but
// recordings exist in the raster source that did not exist on the last
// raster source.
@@ -138,7 +137,6 @@ void PictureLayerTilingSet::UpdateTilingsToCurrentRasterSourceForCommit(
for (PictureLayerTiling* tiling : tilings_) {
tiling->SetRasterSourceAndResize(raster_source);
tiling->Invalidate(layer_invalidation);
- tiling->SetRasterSourceOnTiles();
// This is needed for cases where the live tiles rect didn't change but
// recordings exist in the raster source that did not exist on the last
// raster source.
@@ -156,7 +154,6 @@ void PictureLayerTilingSet::UpdateRasterSourceDueToLCDChange(
// Since the invalidation changed, we need to create any missing tiles in
// the live tiles rect again.
tiling->CreateMissingTilesInLiveTilesRect();
- tiling->VerifyAllTilesHaveCurrentRasterSource();
}
}
@@ -373,10 +370,10 @@ bool PictureLayerTilingSet::UpdateTilePriorities(
return updated;
}
-void PictureLayerTilingSet::GetAllTilesAndPrioritiesForTracing(
- std::map<const Tile*, TilePriority>* tile_map) const {
+void PictureLayerTilingSet::GetAllPrioritizedTilesForTracing(
+ std::vector<PrioritizedTile>* prioritized_tiles) const {
for (auto* tiling : tilings_)
- tiling->GetAllTilesAndPrioritiesForTracing(tile_map);
+ tiling->GetAllPrioritizedTilesForTracing(prioritized_tiles);
}
PictureLayerTilingSet::CoverageIterator::CoverageIterator(
« no previous file with comments | « cc/resources/picture_layer_tiling_set.h ('k') | cc/resources/prioritized_tile.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698