| Index: cc/resources/picture_pile_base.cc
|
| diff --git a/cc/resources/picture_pile_base.cc b/cc/resources/picture_pile_base.cc
|
| index b6e1aa590533f39d6f8940db0ec890484f1f564b..5e38c045501ead78b9ad59d09c4cb6bd0fc89044 100644
|
| --- a/cc/resources/picture_pile_base.cc
|
| +++ b/cc/resources/picture_pile_base.cc
|
| @@ -190,9 +190,14 @@ bool PicturePileBase::CanRaster(float contents_scale, gfx::Rect content_rect) {
|
|
|
| gfx::Rect PicturePileBase::PaddedRect(const PictureMapKey& key) {
|
| gfx::Rect tile = tiling_.TileBounds(key.first, key.second);
|
| - tile.Inset(
|
| + return PadRect(tile);
|
| +}
|
| +
|
| +gfx::Rect PicturePileBase::PadRect(gfx::Rect rect) {
|
| + gfx::Rect padded_rect = rect;
|
| + padded_rect.Inset(
|
| -buffer_pixels(), -buffer_pixels(), -buffer_pixels(), -buffer_pixels());
|
| - return tile;
|
| + return padded_rect;
|
| }
|
|
|
| scoped_ptr<base::Value> PicturePileBase::AsValue() const {
|
|
|