diff options
Diffstat (limited to 'cc/test/fake_picture_pile.cc')
-rw-r--r-- | cc/test/fake_picture_pile.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/cc/test/fake_picture_pile.cc b/cc/test/fake_picture_pile.cc index 614d106..80a584b 100644 --- a/cc/test/fake_picture_pile.cc +++ b/cc/test/fake_picture_pile.cc @@ -68,7 +68,7 @@ void FakePicturePile::AddRecordingAt(int x, int y) { scoped_refptr<Picture> picture( Picture::Create(bounds, &client_, tile_grid_size_, gather_pixel_refs_, RecordingSource::RECORD_NORMALLY)); - picture_map_[std::pair<int, int>(x, y)].SetPicture(picture); + picture_map_[std::pair<int, int>(x, y)] = picture; EXPECT_TRUE(HasRecordingAt(x, y)); has_any_recordings_ = true; @@ -88,9 +88,7 @@ void FakePicturePile::RemoveRecordingAt(int x, int y) { bool FakePicturePile::HasRecordingAt(int x, int y) const { PictureMap::const_iterator found = picture_map_.find(PictureMapKey(x, y)); - if (found == picture_map_.end()) - return false; - return !!found->second.GetPicture(); + return found != picture_map_.end(); } void FakePicturePile::Rerecord() { |