Index: gm/filterfastbounds.cpp |
diff --git a/gm/filterfastbounds.cpp b/gm/filterfastbounds.cpp |
index 9623e4265b58234bce894275522d33863e4b410e..9dabdcb7df34ca9249179cfed40d9d08a8bed932 100644 |
--- a/gm/filterfastbounds.cpp |
+++ b/gm/filterfastbounds.cpp |
@@ -246,17 +246,17 @@ protected: |
//----------- |
// Paints with a PictureImageFilter as a source |
- SkAutoTUnref<SkPicture> pic; |
+ sk_sp<SkPicture> pic; |
{ |
SkPictureRecorder rec; |
SkCanvas* c = rec.beginRecording(10, 10); |
c->drawRect(SkRect::MakeWH(10, 10), blackFill); |
- pic.reset(rec.endRecording()); |
+ pic = rec.finishRecordingAsPicture(); |
} |
- SkAutoTUnref<SkImageFilter> pif(SkPictureImageFilter::Create(pic)); |
+ SkAutoTUnref<SkImageFilter> pif(SkPictureImageFilter::Create(pic.get())); |
SkTArray<SkPaint> pifPaints; |
create_paints(pif, &pifPaints); |