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. |