Chromium Code Reviews| Index: cc/resources/picture.cc |
| diff --git a/cc/resources/picture.cc b/cc/resources/picture.cc |
| index 7e278f8de5e05bc54a31f059651ce2942fefdebf..8c3be9c3bcacbb4034191a432ba6287eea763dea 100644 |
| --- a/cc/resources/picture.cc |
| +++ b/cc/resources/picture.cc |
| @@ -248,6 +248,8 @@ void Picture::GatherPixelRefs( |
| "height", layer_rect_.height()); |
| DCHECK(picture_); |
| + if (!WillPlayBackBitmaps()) |
| + return; |
| cell_size_ = gfx::Size( |
| tile_grid_info.fTileInterval.width() + |
| 2 * tile_grid_info.fMargin.width(), |