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

Unified Diff: cc/paint/paint_recorder.cc

Issue 2894843002: Revert of Remove cullRect() from PaintOpBuffer. (Closed)
Patch Set: rebase TestExpectations 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
« no previous file with comments | « cc/paint/paint_record.cc ('k') | cc/paint/paint_shader.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/paint/paint_recorder.cc
diff --git a/cc/paint/paint_recorder.cc b/cc/paint/paint_recorder.cc
index 20f5cacd2d670fb4971e64085b1d3f1ccd7f48c0..2ed17c74e29d02ee54f07a326ebc63cdcea935e6 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_ = sk_make_sp<PaintOpBuffer>();
- canvas_.emplace(buffer_.get(), bounds);
+ buffer_.reset(new PaintOpBuffer(bounds));
+ canvas_.emplace(buffer_.get());
return getRecordingCanvas();
}
« no previous file with comments | « cc/paint/paint_record.cc ('k') | cc/paint/paint_shader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698