| Index: cc/resources/picture_layer_tiling_unittest.cc
|
| diff --git a/cc/resources/picture_layer_tiling_unittest.cc b/cc/resources/picture_layer_tiling_unittest.cc
|
| index 70109bddd7bb04820bdd0769ad63b9e92a7fe743..90f15edc93665afd8ed183cf5aee104d3314e5c0 100644
|
| --- a/cc/resources/picture_layer_tiling_unittest.cc
|
| +++ b/cc/resources/picture_layer_tiling_unittest.cc
|
| @@ -438,6 +438,15 @@ TEST(PictureLayerTilingTest, ExpandRectOutOfBoundsExpandedPartlyCover) {
|
| EXPECT_TRUE(bounds.Contains(out));
|
| }
|
|
|
| +TEST(PictureLayerTilingTest, ShrinkRectContainingBounds) {
|
| + gfx::Rect in(0, 0, 600, 600);
|
| + gfx::Rect bounds(0, 0, 10, 10);
|
| + int64 target_area = 20 * 20;
|
| + gfx::Rect out = PictureLayerTiling::ExpandRectEquallyToAreaBoundedBy(
|
| + in, target_area, bounds);
|
| + EXPECT_EQ(bounds.ToString(), out.ToString());
|
| +}
|
| +
|
| TEST(PictureLayerTilingTest, EmptyStartingRect) {
|
| // If a layer has a non-invertible transform, then the starting rect
|
| // for the layer would be empty.
|
|
|