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

Unified Diff: cc/blimp/picture_data_conversions_unittest.cc

Issue 2515433002: Revert of Change call-sites now that SkCanvas is not ref-counted (Closed)
Patch Set: 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
« no previous file with comments | « cc/blimp/compositor_state_deserializer_unittest.cc ('k') | cc/output/software_renderer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 535b312fb16643bd3b747a0fecdf8afdc2a5e2ad..f3e64db53843b860ff47c6b2b654b2ecb75c31e2 100644
--- a/cc/blimp/picture_data_conversions_unittest.cc
+++ b/cc/blimp/picture_data_conversions_unittest.cc
@@ -23,7 +23,9 @@
namespace {
sk_sp<const SkPicture> CreateSkPicture(SkColor color) {
SkPictureRecorder recorder;
- recorder.beginRecording(SkRect::MakeWH(1, 1))->drawColor(color);
+ sk_sp<SkCanvas> canvas =
+ sk_ref_sp(recorder.beginRecording(SkRect::MakeWH(1, 1)));
+ canvas->drawColor(color);
return recorder.finishRecordingAsPicture();
}
« no previous file with comments | « cc/blimp/compositor_state_deserializer_unittest.cc ('k') | cc/output/software_renderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698