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

Unified Diff: cc/trees/layer_tree_host_pixeltest_masks.cc

Issue 1423653005: Further plumb visual rect into cc:DisplayItemList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More feedback integration. Created 5 years, 1 month 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/trees/layer_tree_host_pixeltest_masks.cc
diff --git a/cc/trees/layer_tree_host_pixeltest_masks.cc b/cc/trees/layer_tree_host_pixeltest_masks.cc
index 1e395ab4c633d209f8be697e9a15ed43fdf0ad21..c36b1f620bd24862510cfd9eeeca1995247cdac1 100644
--- a/cc/trees/layer_tree_host_pixeltest_masks.cc
+++ b/cc/trees/layer_tree_host_pixeltest_masks.cc
@@ -57,7 +57,7 @@ class MaskContentLayerClient : public ContentLayerClient {
scoped_refptr<DisplayItemList> display_list =
DisplayItemList::Create(clip, DisplayItemListSettings());
- auto* item = display_list->CreateAndAppendItem<DrawingDisplayItem>();
+ auto* item = display_list->CreateAndAppendItem<DrawingDisplayItem>(clip);
skia::RefPtr<SkPicture> picture =
skia::AdoptRef(recorder.endRecordingAsPicture());
@@ -335,7 +335,7 @@ class CheckerContentLayerClient : public ContentLayerClient {
scoped_refptr<DisplayItemList> display_list =
DisplayItemList::Create(clip, DisplayItemListSettings());
- auto* item = display_list->CreateAndAppendItem<DrawingDisplayItem>();
+ auto* item = display_list->CreateAndAppendItem<DrawingDisplayItem>(clip);
skia::RefPtr<SkPicture> picture =
skia::AdoptRef(recorder.endRecordingAsPicture());
@@ -376,7 +376,7 @@ class CircleContentLayerClient : public ContentLayerClient {
scoped_refptr<DisplayItemList> display_list =
DisplayItemList::Create(clip, DisplayItemListSettings());
- auto* item = display_list->CreateAndAppendItem<DrawingDisplayItem>();
+ auto* item = display_list->CreateAndAppendItem<DrawingDisplayItem>(clip);
skia::RefPtr<SkPicture> picture =
skia::AdoptRef(recorder.endRecordingAsPicture());
item->SetNew(picture.Pass());

Powered by Google App Engine
This is Rietveld 408576698