Index: src/effects/SkOffsetImageFilter.cpp |
diff --git a/src/effects/SkOffsetImageFilter.cpp b/src/effects/SkOffsetImageFilter.cpp |
index a2de25e7de944c700454ffdfadee53b3c6538008..69f1895402fba71f53b930a8ff91e0d80ed5ac37 100644 |
--- a/src/effects/SkOffsetImageFilter.cpp |
+++ b/src/effects/SkOffsetImageFilter.cpp |
@@ -86,7 +86,7 @@ SkFlattenable* SkOffsetImageFilter::CreateProc(SkReadBuffer& buffer) { |
SK_IMAGEFILTER_UNFLATTEN_COMMON(common, 1); |
SkPoint offset; |
buffer.readPoint(&offset); |
- return Create(offset.x(), offset.y(), common.getInput(0).get(), &common.cropRect()); |
+ return Make(offset.x(), offset.y(), common.getInput(0), &common.cropRect()).release(); |
} |
void SkOffsetImageFilter::flatten(SkWriteBuffer& buffer) const { |
@@ -94,9 +94,10 @@ void SkOffsetImageFilter::flatten(SkWriteBuffer& buffer) const { |
buffer.writePoint(fOffset); |
} |
-SkOffsetImageFilter::SkOffsetImageFilter(SkScalar dx, SkScalar dy, SkImageFilter* input, |
+SkOffsetImageFilter::SkOffsetImageFilter(SkScalar dx, SkScalar dy, |
+ sk_sp<SkImageFilter> input, |
const CropRect* cropRect) |
- : INHERITED(1, &input, cropRect) { |
+ : INHERITED(&input, 1, cropRect) { |
fOffset.set(dx, dy); |
} |