Index: cc/resources/picture_layer_tiling.cc |
diff --git a/cc/resources/picture_layer_tiling.cc b/cc/resources/picture_layer_tiling.cc |
index 72161525725cc98f44e4f3dc31199185051721ac..8ec696adea6a60f4d70747e8205998dce677b42a 100644 |
--- a/cc/resources/picture_layer_tiling.cc |
+++ b/cc/resources/picture_layer_tiling.cc |
@@ -52,6 +52,12 @@ PictureLayerTiling::PictureLayerTiling(float contents_scale, |
gfx::ToCeiledSize(gfx::ScaleSize(layer_bounds, contents_scale)); |
gfx::Size tile_size = client_->CalculateTileSize(content_bounds); |
+ DCHECK(!gfx::ToFlooredSize( |
enne (OOO)
2013/05/03 07:00:57
Oh, good thought to put a check here.
|
+ gfx::ScaleSize(layer_bounds, contents_scale)).IsEmpty()) << |
+ "Tiling created with scale too small as contents become empty. " << |
+ "Layer bounds: " << layer_bounds.ToString() << |
+ "Contents scale: " << contents_scale; |
+ |
tiling_data_.SetTotalSize(content_bounds); |
tiling_data_.SetMaxTextureSize(tile_size); |
} |