Index: src/gpu/GrLayerHoister.cpp |
diff --git a/src/gpu/GrLayerHoister.cpp b/src/gpu/GrLayerHoister.cpp |
index a446be8084ed3fa814cccef03b7db41dfd0690ab..0fef0ef335997188e4083f2aa366fd4a04f77b17 100644 |
--- a/src/gpu/GrLayerHoister.cpp |
+++ b/src/gpu/GrLayerHoister.cpp |
@@ -304,12 +304,12 @@ void GrLayerHoister::FilterLayer(GrContext* context, |
// TODO: should the layer hoister store stand alone layers as SkSpecialImages internally? |
const SkIRect subset = SkIRect::MakeWH(layer->texture()->width(), layer->texture()->height()); |
- SkAutoTUnref<SkSpecialImage> img(SkSpecialImage::NewFromGpu(&proxy, subset, |
- kNeedNewImageUniqueID_SpecialImage, |
- layer->texture())); |
+ sk_sp<SkSpecialImage> img(SkSpecialImage::MakeFromGpu(&proxy, subset, |
+ kNeedNewImageUniqueID_SpecialImage, |
+ layer->texture())); |
SkIPoint offset = SkIPoint::Make(0, 0); |
- SkAutoTUnref<SkSpecialImage> result(layer->filter()->filterImage(img, |
+ SkAutoTUnref<SkSpecialImage> result(layer->filter()->filterImage(img.get(), |
filterContext, |
&offset)); |
if (!result) { |