| Index: src/effects/SkAlphaThresholdFilter.cpp
 | 
| diff --git a/src/effects/SkAlphaThresholdFilter.cpp b/src/effects/SkAlphaThresholdFilter.cpp
 | 
| index 406797084f7f8a4369f6087106572a41be817e5d..79520602b719e69f169f7511415861e3d390f12f 100644
 | 
| --- a/src/effects/SkAlphaThresholdFilter.cpp
 | 
| +++ b/src/effects/SkAlphaThresholdFilter.cpp
 | 
| @@ -45,19 +45,11 @@
 | 
|      SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkAlphaThresholdFilterImpl)
 | 
|  SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END
 | 
|  
 | 
| -static bool outside_unit(SkScalar x) {
 | 
| -    return x < 0 || x > 1;
 | 
| -}
 | 
|  
 | 
|  SkImageFilter* SkAlphaThresholdFilter::Create(const SkRegion& region,
 | 
|                                                SkScalar innerThreshold,
 | 
|                                                SkScalar outerThreshold,
 | 
|                                                SkImageFilter* input) {
 | 
| -    if (outside_unit(innerThreshold) || outside_unit(outerThreshold) ||
 | 
| -        innerThreshold > outerThreshold)
 | 
| -    {
 | 
| -        return nullptr;
 | 
| -    }
 | 
|      return new SkAlphaThresholdFilterImpl(region, innerThreshold, outerThreshold, input);
 | 
|  }
 | 
|  
 | 
| @@ -342,6 +334,7 @@
 | 
|  bool SkAlphaThresholdFilterImpl::onFilterImageDeprecated(Proxy* proxy, const SkBitmap& src,
 | 
|                                                           const Context& ctx, SkBitmap* dst,
 | 
|                                                           SkIPoint* offset) const {
 | 
| +    SkASSERT(src.colorType() == kN32_SkColorType);
 | 
|  
 | 
|      if (src.colorType() != kN32_SkColorType) {
 | 
|          return false;
 | 
| 
 |