| Index: cc/resources/picture_layer_tiling.cc
|
| diff --git a/cc/resources/picture_layer_tiling.cc b/cc/resources/picture_layer_tiling.cc
|
| index 85249e2598351219a16106c914e714bd8d7af513..678a0fad11ffb764da09d720202ccdb97326badd 100644
|
| --- a/cc/resources/picture_layer_tiling.cc
|
| +++ b/cc/resources/picture_layer_tiling.cc
|
| @@ -42,6 +42,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(
|
| + 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);
|
| }
|
|
|