Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3461)

Unified Diff: cc/paint/paint_recorder.cc

Issue 2889653002: Remove cullRect() from PaintOpBuffer. (Closed)
Patch Set: movecullrect2 fixcompile Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();
}

Powered by Google App Engine
This is Rietveld 408576698