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

Unified Diff: cc/trees/layer_tree_host_pixeltest_tiles.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/trees/layer_tree_host_pixeltest_tiles.cc
diff --git a/cc/trees/layer_tree_host_pixeltest_tiles.cc b/cc/trees/layer_tree_host_pixeltest_tiles.cc
index ec2303ae6b65fea439b381e5f9a049454587ea39..51457be4870c68cf9a414a8a4b66ee0c1408db0f 100644
--- a/cc/trees/layer_tree_host_pixeltest_tiles.cc
+++ b/cc/trees/layer_tree_host_pixeltest_tiles.cc
@@ -130,13 +130,8 @@ class BlueYellowClient : public ContentLayerClient {
paint.setColor(SK_ColorYELLOW);
canvas->drawRect(gfx::RectToSkRect(yellow_rect), paint);
- skia::RefPtr<SkPicture> picture =
- skia::AdoptRef(recorder.endRecordingAsPicture());
-
- auto* item = display_list->CreateAndAppendItem<DrawingDisplayItem>(
- PaintableRegion());
- item->SetNew(std::move(picture));
-
+ display_list->CreateAndAppendItem<DrawingDisplayItem>(
+ PaintableRegion(), skia::AdoptRef(recorder.endRecordingAsPicture()));
display_list->Finalize();
return display_list;
}

Powered by Google App Engine
This is Rietveld 408576698