Index: cc/paint/paint_recorder.cc |
diff --git a/cc/paint/paint_recorder.cc b/cc/paint/paint_recorder.cc |
index 2ed17c74e29d02ee54f07a326ebc63cdcea935e6..20f5cacd2d670fb4971e64085b1d3f1ccd7f48c0 100644 |
--- a/cc/paint/paint_recorder.cc |
+++ b/cc/paint/paint_recorder.cc |
@@ -13,8 +13,8 @@ PaintRecorder::PaintRecorder() = default; |
PaintRecorder::~PaintRecorder() = default; |
PaintCanvas* PaintRecorder::beginRecording(const SkRect& bounds) { |
- buffer_.reset(new PaintOpBuffer(bounds)); |
- canvas_.emplace(buffer_.get()); |
+ buffer_ = sk_make_sp<PaintOpBuffer>(); |
+ canvas_.emplace(buffer_.get(), bounds); |
return getRecordingCanvas(); |
} |