diff options
Diffstat (limited to 'src/effects/SkAlphaThresholdFilter.cpp')
-rw-r--r-- | src/effects/SkAlphaThresholdFilter.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/effects/SkAlphaThresholdFilter.cpp b/src/effects/SkAlphaThresholdFilter.cpp index 5bd2571842..f09ec50b67 100644 --- a/src/effects/SkAlphaThresholdFilter.cpp +++ b/src/effects/SkAlphaThresholdFilter.cpp @@ -31,6 +31,7 @@ public: SkScalar outerThreshold, sk_sp<SkImageFilter> input, const CropRect* cropRect = nullptr); + void toString(SkString* str) const override; SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkAlphaThresholdFilterImpl) friend void SkAlphaThresholdFilter::InitializeFlattenables(); @@ -280,3 +281,10 @@ const { } return this->refMe(); } + +void SkAlphaThresholdFilterImpl::toString(SkString* str) const { + str->appendf("SkAlphaThresholdImageFilter: ("); + str->appendf("inner: %f outer: %f", fInnerThreshold, fOuterThreshold); + str->append(")"); +} + |