| Index: ui/compositor/paint_recorder.cc
|
| diff --git a/ui/compositor/paint_recorder.cc b/ui/compositor/paint_recorder.cc
|
| index 80fb616a35fa169554fbedeb61e73692368db7f6..ee740c6faf5746999ad16945b98ceef0a8a6080f 100644
|
| --- a/ui/compositor/paint_recorder.cc
|
| +++ b/ui/compositor/paint_recorder.cc
|
| @@ -47,11 +47,10 @@ PaintRecorder::~PaintRecorder() {
|
| if (!context_.list_)
|
| return;
|
|
|
| - scoped_ptr<cc::DrawingDisplayItem> item = cc::DrawingDisplayItem::Create(
|
| - skia::AdoptRef(context_.recorder_->endRecordingAsPicture()));
|
| + auto* item = context_.list_->CreateAndAppendItem<cc::DrawingDisplayItem>();
|
| + item->SetNew(skia::AdoptRef(context_.recorder_->endRecordingAsPicture()));
|
| if (cache_)
|
| - cache_->SetCache(item->Clone());
|
| - context_.list_->AppendItem(item.Pass());
|
| + cache_->SetCache(item);
|
| }
|
|
|
| } // namespace ui
|
|
|