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

Unified Diff: cc/resources/picture_layer_tiling_set.cc

Issue 799463005: cc: Mirror LiveTilesRect and tiles between active and recycled trees. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: noswap-ltr: withcheck Created 6 years 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/picture_layer_tiling_set.cc
diff --git a/cc/resources/picture_layer_tiling_set.cc b/cc/resources/picture_layer_tiling_set.cc
index 96e60b81a762c3777b01c824928fd8b40b138bc5..a3348bc72d350f608c21555cef7a60ed9da5c727 100644
--- a/cc/resources/picture_layer_tiling_set.cc
+++ b/cc/resources/picture_layer_tiling_set.cc
@@ -90,7 +90,9 @@ void PictureLayerTilingSet::UpdateTilingsToCurrentRasterSource(
tiling->Resize(layer_bounds);
tiling->Invalidate(layer_invalidation);
tiling->SetRasterSource(raster_source);
- // TODO(danakj): Is this needed anymore? Won't they already exist?
+ // 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.
tiling->CreateMissingTilesInLiveTilesRect();
// If |twin_set| is present, use the resolutions from there. Otherwise leave

Powered by Google App Engine
This is Rietveld 408576698