Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(170)

Unified Diff: cc/test/fake_picture_pile.cc

Issue 1045953002: Implement DisplayList GatherPixelRefs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix crash w/ unittest Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/test/fake_picture_pile.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_picture_pile.cc
diff --git a/cc/test/fake_picture_pile.cc b/cc/test/fake_picture_pile.cc
index 4db6c58a8345dacb1e7a1489724867af4810fa3f..614d106146a5cf379989fc939dc103fb38cb3164 100644
--- a/cc/test/fake_picture_pile.cc
+++ b/cc/test/fake_picture_pile.cc
@@ -66,7 +66,7 @@ void FakePicturePile::AddRecordingAt(int x, int y) {
bounds.Inset(-buffer_pixels(), -buffer_pixels());
scoped_refptr<Picture> picture(
- Picture::Create(bounds, &client_, tile_grid_size_, true,
+ Picture::Create(bounds, &client_, tile_grid_size_, gather_pixel_refs_,
RecordingSource::RECORD_NORMALLY));
picture_map_[std::pair<int, int>(x, y)].SetPicture(picture);
EXPECT_TRUE(HasRecordingAt(x, y));
@@ -93,7 +93,7 @@ bool FakePicturePile::HasRecordingAt(int x, int y) const {
return !!found->second.GetPicture();
}
-void FakePicturePile::RerecordPile() {
+void FakePicturePile::Rerecord() {
for (int y = 0; y < num_tiles_y(); ++y) {
for (int x = 0; x < num_tiles_x(); ++x) {
RemoveRecordingAt(x, y);
« no previous file with comments | « cc/test/fake_picture_pile.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698