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

Unified Diff: cc/test/fake_picture_pile_impl.cc

Issue 684653004: Plumb can_use_lcd_text, contents_opaque directly to ContentLayerClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
Index: cc/test/fake_picture_pile_impl.cc
diff --git a/cc/test/fake_picture_pile_impl.cc b/cc/test/fake_picture_pile_impl.cc
index 32a6589ee96761fa385b2b4dd13b77c68c6bc89c..6beb746d39e11ba7cdadc5704c8f8420d769b6c8 100644
--- a/cc/test/fake_picture_pile_impl.cc
+++ b/cc/test/fake_picture_pile_impl.cc
@@ -83,8 +83,16 @@ void FakePicturePileImpl::AddRecordingAt(int x, int y) {
gfx::Rect bounds(tiling().TileBounds(x, y));
bounds.Inset(-buffer_pixels(), -buffer_pixels());
- scoped_refptr<Picture> picture(Picture::Create(
- bounds, &client_, tile_grid_info_, true, Picture::RECORD_NORMALLY));
+ bool can_use_lcd_text = false;
+ bool contents_opaque = false;
+ bool gather_pixel_refs = true;
+ scoped_refptr<Picture> picture(Picture::Create(bounds,
+ &client_,
+ can_use_lcd_text,
+ contents_opaque,
+ tile_grid_info_,
+ gather_pixel_refs,
+ Picture::RECORD_NORMALLY));
picture_map_[std::pair<int, int>(x, y)].SetPicture(picture);
EXPECT_TRUE(HasRecordingAt(x, y));

Powered by Google App Engine
This is Rietveld 408576698