Index: src/effects/SkPictureImageFilter.cpp |
diff --git a/src/effects/SkPictureImageFilter.cpp b/src/effects/SkPictureImageFilter.cpp |
index d1a7fc59cf6cc9bfb697e355a9ebb074bb3ea00c..14c14bb1762f4785e04819d91a10ca1053dd2c0a 100644 |
--- a/src/effects/SkPictureImageFilter.cpp |
+++ b/src/effects/SkPictureImageFilter.cpp |
@@ -36,14 +36,14 @@ SkPictureImageFilter::~SkPictureImageFilter() { |
} |
SkFlattenable* SkPictureImageFilter::CreateProc(SkReadBuffer& buffer) { |
- SkAutoTUnref<SkPicture> picture; |
+ sk_sp<SkPicture> picture; |
SkRect cropRect; |
if (buffer.isCrossProcess() && SkPicture::PictureIOSecurityPrecautionsEnabled()) { |
buffer.validate(!buffer.readBool()); |
} else { |
if (buffer.readBool()) { |
- picture.reset(SkPicture::CreateFromBuffer(buffer)); |
+ picture = SkPicture::MakeFromBuffer(buffer); |
} |
} |
buffer.readRect(&cropRect); |
@@ -62,9 +62,9 @@ SkFlattenable* SkPictureImageFilter::CreateProc(SkReadBuffer& buffer) { |
} else { |
filterQuality = (SkFilterQuality)buffer.readInt(); |
} |
- return CreateForLocalSpace(picture, cropRect, filterQuality); |
+ return CreateForLocalSpace(picture.get(), cropRect, filterQuality); |
} |
- return Create(picture, cropRect); |
+ return Create(picture.get(), cropRect); |
} |
void SkPictureImageFilter::flatten(SkWriteBuffer& buffer) const { |