summaryrefslogtreecommitdiffstats
path: root/cc/blink/web_display_item_list_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'cc/blink/web_display_item_list_impl.cc')
-rw-r--r--cc/blink/web_display_item_list_impl.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/cc/blink/web_display_item_list_impl.cc b/cc/blink/web_display_item_list_impl.cc
index 451a5d5..810a559 100644
--- a/cc/blink/web_display_item_list_impl.cc
+++ b/cc/blink/web_display_item_list_impl.cc
@@ -50,12 +50,12 @@ WebDisplayItemListImpl::WebDisplayItemListImpl(
void WebDisplayItemListImpl::appendDrawingItem(
const blink::WebRect& visual_rect,
- const SkPicture* picture) {
+ sk_sp<const SkPicture> picture) {
if (display_item_list_->RetainsIndividualDisplayItems()) {
display_item_list_->CreateAndAppendItem<cc::DrawingDisplayItem>(
- visual_rect, skia::SharePtr(picture));
+ visual_rect, std::move(picture));
} else {
- cc::DrawingDisplayItem item(skia::SharePtr(picture));
+ cc::DrawingDisplayItem item(std::move(picture));
display_item_list_->RasterIntoCanvas(item);
}
}