Index: src/effects/SkPaintImageFilter.cpp |
diff --git a/src/effects/SkPaintImageFilter.cpp b/src/effects/SkPaintImageFilter.cpp |
index 6ae62d9112dd443065459cc9eac2e103ef14b4da..02387cefc3602336fd3a28fe0de363d5a565e349 100644 |
--- a/src/effects/SkPaintImageFilter.cpp |
+++ b/src/effects/SkPaintImageFilter.cpp |
@@ -45,7 +45,7 @@ SkSpecialImage* SkPaintImageFilter::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; |
} |
@@ -67,7 +67,7 @@ SkSpecialImage* SkPaintImageFilter::onFilterImage(SkSpecialImage* source, |
offset->fX = bounds.fLeft; |
offset->fY = bounds.fTop; |
- return surf->newImageSnapshot(); |
+ return surf->makeImageSnapshot().release(); |
} |
bool SkPaintImageFilter::canComputeFastBounds() const { |