Index: src/effects/SkOffsetImageFilter.cpp |
diff --git a/src/effects/SkOffsetImageFilter.cpp b/src/effects/SkOffsetImageFilter.cpp |
index 77cf4423844af2207ff821ff49b95e0c80e93cad..f3d2bb0c5897ebdb6e1bbf0b374ad4051aa2957d 100644 |
--- a/src/effects/SkOffsetImageFilter.cpp |
+++ b/src/effects/SkOffsetImageFilter.cpp |
@@ -41,7 +41,7 @@ SkSpecialImage* SkOffsetImageFilter::onFilterImage(SkSpecialImage* source, |
SkImageInfo info = SkImageInfo::MakeN32(bounds.width(), bounds.height(), |
kPremul_SkAlphaType); |
- SkAutoTUnref<SkSpecialSurface> surf(source->newSurface(info)); |
+ sk_sp<SkSpecialSurface> surf(source->makeSurface(info)); |
if (!surf) { |
return nullptr; |
} |
@@ -61,7 +61,7 @@ SkSpecialImage* SkOffsetImageFilter::onFilterImage(SkSpecialImage* source, |
offset->fX = bounds.fLeft; |
offset->fY = bounds.fTop; |
- return surf->newImageSnapshot(); |
+ return surf->makeImageSnapshot().release(); |
} |
} |