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

Unified Diff: blimp/test/support/compositor/picture_cache_test_support.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: blimp/test/support/compositor/picture_cache_test_support.cc
diff --git a/blimp/test/support/compositor/picture_cache_test_support.cc b/blimp/test/support/compositor/picture_cache_test_support.cc
index 1f2b35c8b4a6614c094dbeaf6675a68a8b19974f..58cd52fd293320c7843736d81c8fa7a2b245cd5d 100644
--- a/blimp/test/support/compositor/picture_cache_test_support.cc
+++ b/blimp/test/support/compositor/picture_cache_test_support.cc
@@ -22,8 +22,7 @@ namespace blimp {
sk_sp<const SkPicture> CreateSkPicture(SkColor color) {
SkPictureRecorder recorder;
- sk_sp<SkCanvas> canvas =
- sk_ref_sp(recorder.beginRecording(SkRect::MakeWH(1, 1)));
+ SkCanvas* canvas = recorder.beginRecording(SkRect::MakeWH(1, 1));
canvas->drawColor(color);
return recorder.finishRecordingAsPicture();
}

Powered by Google App Engine
This is Rietveld 408576698