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

Unified Diff: cc/picture_layer_tiling.cc

Issue 12221129: cc: Recreate small layer tiles when size changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/picture_layer_tiling.cc
diff --git a/cc/picture_layer_tiling.cc b/cc/picture_layer_tiling.cc
index ae3afc39d0451f79f96449138fba168f8f90ae2a..0a339a38b1435f72d12d66912fb5aa9a78b355c0 100644
--- a/cc/picture_layer_tiling.cc
+++ b/cc/picture_layer_tiling.cc
@@ -92,6 +92,8 @@ void PictureLayerTiling::SetLayerBounds(gfx::Size layer_bounds) {
if (tile_size != tiling_data_.max_texture_size()) {
tiling_data_.SetMaxTextureSize(tile_size);
tiles_.clear();
+ CreateTilesFromLayerRect(gfx::Rect(layer_bounds_));
danakj 2013/02/12 01:31:20 What if you set old_layer_bounds to empty here? Wo
enne (OOO) 2013/02/12 01:34:39 Hmm. I'm not sure the single line of reuse makes
danakj 2013/02/12 01:36:24 For instance, if you did it that way, you'd also g
danakj 2013/02/12 01:37:56 (Especially considering Justin's desire to record
+ return;
}
// Any tiles outside our new bounds are invalid and should be dropped.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698