| Index: ui/compositor/paint_recorder.cc
|
| diff --git a/ui/compositor/paint_recorder.cc b/ui/compositor/paint_recorder.cc
|
| index b3d497b2fa361c60ca7542199011b22aff549ca4..fef53c8a1969c5f4d11a60fa9fda8736a6996406 100644
|
| --- a/ui/compositor/paint_recorder.cc
|
| +++ b/ui/compositor/paint_recorder.cc
|
| @@ -41,10 +41,10 @@ PaintRecorder::~PaintRecorder() {
|
| #if DCHECK_IS_ON()
|
| context_.inside_paint_recorder_ = false;
|
| #endif
|
| -
|
| - auto* item = context_.list_->CreateAndAppendItem<cc::DrawingDisplayItem>(
|
| - bounds_in_layer_);
|
| - item->SetNew(skia::AdoptRef(context_.recorder_->endRecordingAsPicture()));
|
| + const auto& item =
|
| + context_.list_->CreateAndAppendItem<cc::DrawingDisplayItem>(
|
| + bounds_in_layer_,
|
| + skia::AdoptRef(context_.recorder_->endRecordingAsPicture()));
|
| if (cache_)
|
| cache_->SetCache(item);
|
| }
|
|
|