Index: src/effects/SkAlphaThresholdFilter.cpp |
diff --git a/src/effects/SkAlphaThresholdFilter.cpp b/src/effects/SkAlphaThresholdFilter.cpp |
index 0bc906dae9995920d9ba8d09d132bbf81b4f8c54..b1425a8f245d24e38f5fcf528083e2c736c8b000 100644 |
--- a/src/effects/SkAlphaThresholdFilter.cpp |
+++ b/src/effects/SkAlphaThresholdFilter.cpp |
@@ -13,7 +13,8 @@ |
class SK_API SkAlphaThresholdFilterImpl : public SkImageFilter { |
public: |
- SkAlphaThresholdFilterImpl(const SkRegion& region, SkScalar innerThreshold, SkScalar outerThreshold); |
+ SkAlphaThresholdFilterImpl(const SkRegion& region, SkScalar innerThreshold, |
+ SkScalar outerThreshold, SkImageFilter* input); |
SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkAlphaThresholdFilterImpl) |
@@ -37,8 +38,9 @@ private: |
SkImageFilter* SkAlphaThresholdFilter::Create(const SkRegion& region, |
SkScalar innerThreshold, |
- SkScalar outerThreshold) { |
- return SkNEW_ARGS(SkAlphaThresholdFilterImpl, (region, innerThreshold, outerThreshold)); |
+ SkScalar outerThreshold, |
+ SkImageFilter* input) { |
+ return SkNEW_ARGS(SkAlphaThresholdFilterImpl, (region, innerThreshold, outerThreshold, input)); |
} |
#if SK_SUPPORT_GPU |
@@ -240,8 +242,9 @@ SkAlphaThresholdFilterImpl::SkAlphaThresholdFilterImpl(SkReadBuffer& buffer) |
SkAlphaThresholdFilterImpl::SkAlphaThresholdFilterImpl(const SkRegion& region, |
SkScalar innerThreshold, |
- SkScalar outerThreshold) |
- : INHERITED(0) |
+ SkScalar outerThreshold, |
+ SkImageFilter* input) |
+ : INHERITED(1, &input) |
, fRegion(region) |
, fInnerThreshold(innerThreshold) |
, fOuterThreshold(outerThreshold) { |