summaryrefslogtreecommitdiffstats
path: root/cc/test/fake_picture_pile_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'cc/test/fake_picture_pile_impl.cc')
-rw-r--r--cc/test/fake_picture_pile_impl.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/cc/test/fake_picture_pile_impl.cc b/cc/test/fake_picture_pile_impl.cc
index 0530cfb..b14a6e9 100644
--- a/cc/test/fake_picture_pile_impl.cc
+++ b/cc/test/fake_picture_pile_impl.cc
@@ -51,6 +51,8 @@ void FakePicturePileImpl::AddRecordingAt(int x, int y) {
if (HasRecordingAt(x, y))
return;
gfx::Rect bounds(tiling().TileBounds(x, y));
+ bounds.Inset(-buffer_pixels(), -buffer_pixels());
+
scoped_refptr<Picture> picture(Picture::Create(bounds));
picture->Record(&client_, tile_grid_info_, NULL);
picture->GatherPixelRefs(tile_grid_info_, NULL);