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

Unified Diff: cc/blimp/picture_data_conversions_unittest.cc

Issue 2476113002: Change call-sites now that SkCanvas is not ref-counted (Closed)
Patch Set: try fixing win again Created 4 years, 1 month 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/blimp/picture_data_conversions_unittest.cc
diff --git a/cc/blimp/picture_data_conversions_unittest.cc b/cc/blimp/picture_data_conversions_unittest.cc
index f3e64db53843b860ff47c6b2b654b2ecb75c31e2..535b312fb16643bd3b747a0fecdf8afdc2a5e2ad 100644
--- a/cc/blimp/picture_data_conversions_unittest.cc
+++ b/cc/blimp/picture_data_conversions_unittest.cc
@@ -23,9 +23,7 @@ namespace cc {
namespace {
sk_sp<const SkPicture> CreateSkPicture(SkColor color) {
SkPictureRecorder recorder;
- sk_sp<SkCanvas> canvas =
- sk_ref_sp(recorder.beginRecording(SkRect::MakeWH(1, 1)));
- canvas->drawColor(color);
+ recorder.beginRecording(SkRect::MakeWH(1, 1))->drawColor(color);
return recorder.finishRecordingAsPicture();
}

Powered by Google App Engine
This is Rietveld 408576698