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

Unified Diff: cc/test/solid_color_content_layer_client.cc

Issue 1494223003: cc: Shrink size of display item (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make SetNew private Created 5 years 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/solid_color_content_layer_client.cc
diff --git a/cc/test/solid_color_content_layer_client.cc b/cc/test/solid_color_content_layer_client.cc
index c3518c35482a68a9d080384cc1522a77f24698f7..1896e5b562c8d2df08dfcfd1fb9431e15d3e9ab1 100644
--- a/cc/test/solid_color_content_layer_client.cc
+++ b/cc/test/solid_color_content_layer_client.cc
@@ -39,11 +39,11 @@ SolidColorContentLayerClient::PaintContentsToDisplayList(
settings.use_cached_picture = false;
scoped_refptr<DisplayItemList> display_list =
DisplayItemList::Create(clip, settings);
- auto* item = display_list->CreateAndAppendItem<DrawingDisplayItem>(clip);
skia::RefPtr<SkPicture> picture =
skia::AdoptRef(recorder.endRecordingAsPicture());
- item->SetNew(std::move(picture));
+ display_list->CreateAndAppendItem<DrawingDisplayItem>(clip,
+ std::move(picture));
danakj 2015/12/08 19:18:16 or pass the AdoptRef directly like you did elsewhe
enne (OOO) 2015/12/08 19:47:27 Oops. Missed that one. :C
display_list->Finalize();
return display_list;

Powered by Google App Engine
This is Rietveld 408576698