Index: ui/compositor/paint_recorder.cc |
diff --git a/ui/compositor/paint_recorder.cc b/ui/compositor/paint_recorder.cc |
index 3ed48a7dac4110a7866d488b45d55ca8ed309bee..163a7a7790868055239b31fd490808a4fc32438a 100644 |
--- a/ui/compositor/paint_recorder.cc |
+++ b/ui/compositor/paint_recorder.cc |
@@ -43,7 +43,7 @@ PaintRecorder::~PaintRecorder() { |
const auto& item = |
context_.list_->CreateAndAppendItem<cc::DrawingDisplayItem>( |
bounds_in_layer_, |
- skia::AdoptRef(context_.recorder_->endRecordingAsPicture())); |
+ context_.recorder_->finishRecordingAsPicture()); |
if (cache_) |
cache_->SetCache(item); |
} |