Index: gm/pictureimagegenerator.cpp |
diff --git a/gm/pictureimagegenerator.cpp b/gm/pictureimagegenerator.cpp |
index 2d50f3a6bedde651d0a90c2bcf9930314512cf19..60e979fc3c063ef2982d0c739d97c04a385e5420 100644 |
--- a/gm/pictureimagegenerator.cpp |
+++ b/gm/pictureimagegenerator.cpp |
@@ -108,7 +108,7 @@ protected: |
SkPictureRecorder recorder; |
SkCanvas* canvas = recorder.beginRecording(rect); |
draw_vector_logo(canvas, rect); |
- fPicture.reset(recorder.endRecording()); |
+ fPicture = recorder.finishRecordingAsPicture(); |
} |
void onDraw(SkCanvas* canvas) override { |
@@ -171,7 +171,7 @@ protected: |
} |
private: |
- SkAutoTUnref<SkPicture> fPicture; |
+ sk_sp<SkPicture> fPicture; |
const SkScalar kPictureWidth = 200; |
const SkScalar kPictureHeight = 100; |