aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2016-04-05 09:09:36 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-04-05 09:09:37 -0700
commitfc11b0afe0ca922a42767d4a656ed640008da1bb (patch)
treeeb84a2ba05f37c8e7b9c721f38bc93bac27b5bcb /src
parentb8797bb7b74adcab1d198de3ef4f0871b0bb6718 (diff)
Update SkMorphology ImageFilters to sk_sp
Diffstat (limited to 'src')
-rw-r--r--src/effects/SkMorphologyImageFilter.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/effects/SkMorphologyImageFilter.cpp b/src/effects/SkMorphologyImageFilter.cpp
index bf8811b887..ea714e59f6 100644
--- a/src/effects/SkMorphologyImageFilter.cpp
+++ b/src/effects/SkMorphologyImageFilter.cpp
@@ -30,9 +30,9 @@
SkMorphologyImageFilter::SkMorphologyImageFilter(int radiusX,
int radiusY,
- SkImageFilter* input,
+ sk_sp<SkImageFilter> input,
const CropRect* cropRect)
- : INHERITED(1, &input, cropRect)
+ : INHERITED(&input, 1, cropRect)
, fRadius(SkISize::Make(radiusX, radiusY)) {
}
@@ -76,16 +76,14 @@ sk_sp<SkFlattenable> SkErodeImageFilter::CreateProc(SkReadBuffer& buffer) {
SK_IMAGEFILTER_UNFLATTEN_COMMON(common, 1);
const int width = buffer.readInt();
const int height = buffer.readInt();
- return sk_sp<SkFlattenable>(Create(width, height, common.getInput(0).get(),
- &common.cropRect()));
+ return Make(width, height, common.getInput(0), &common.cropRect());
}
sk_sp<SkFlattenable> SkDilateImageFilter::CreateProc(SkReadBuffer& buffer) {
SK_IMAGEFILTER_UNFLATTEN_COMMON(common, 1);
const int width = buffer.readInt();
const int height = buffer.readInt();
- return sk_sp<SkFlattenable>(Create(width, height, common.getInput(0).get(),
- &common.cropRect()));
+ return Make(width, height, common.getInput(0), &common.cropRect());
}
#ifndef SK_IGNORE_TO_STRING