| Index: gm/verylargebitmap.cpp
|
| diff --git a/gm/verylargebitmap.cpp b/gm/verylargebitmap.cpp
|
| index 4ce5b7b379cf3973877a852a17b755483c316999..b3ed5603a61dafe893ce4d953457053885823989 100644
|
| --- a/gm/verylargebitmap.cpp
|
| +++ b/gm/verylargebitmap.cpp
|
| @@ -31,9 +31,8 @@ static sk_sp<SkImage> make_raster_image(int width, int height, SkColor colors[2]
|
| static sk_sp<SkImage> make_picture_image(int width, int height, SkColor colors[2]) {
|
| SkPictureRecorder recorder;
|
| draw(recorder.beginRecording(SkRect::MakeIWH(width, height)), width, height, colors);
|
| - SkAutoTUnref<SkPicture> picture(recorder.endRecording());
|
| - return SkImage::MakeFromPicture(sk_ref_sp(picture.get()), SkISize::Make(width, height),
|
| - nullptr, nullptr);
|
| + return SkImage::MakeFromPicture(recorder.finishRecordingAsPicture(),
|
| + SkISize::Make(width, height), nullptr, nullptr);
|
| }
|
|
|
| typedef sk_sp<SkImage> (*ImageMakerProc)(int width, int height, SkColor colors[2]);
|
|
|