Replace SkFAIL with SK_ABORT.
SkFAIL is a legacy macro which is just SK_ABORT. This CL mechanically
changes uses of SkFAIL to SK_ABORT in preparation for its removal. The
related sk_throw macro will be changed independently, due to needing to
actually clean up its users.
Change-Id: Id70b5c111a02d2458dc60c8933f444df27d9cebb
Reviewed-on: https://skia-review.googlesource.com/35284
Reviewed-by: Derek Sollenberger <djsollen@google.com>
Commit-Queue: Ben Wagner <bungeman@google.com>
diff --git a/src/effects/SkMorphologyImageFilter.cpp b/src/effects/SkMorphologyImageFilter.cpp
index 1585c9d..5f59637 100644
--- a/src/effects/SkMorphologyImageFilter.cpp
+++ b/src/effects/SkMorphologyImageFilter.cpp
@@ -234,7 +234,7 @@
func = "max";
break;
default:
- SkFAIL("Unexpected type");
+ SK_ABORT("Unexpected type");
func = ""; // suppress warning
break;
}
@@ -248,7 +248,7 @@
dir = "y";
break;
default:
- SkFAIL("Unknown filter direction.");
+ SK_ABORT("Unknown filter direction.");
dir = ""; // suppress warning
}
@@ -306,7 +306,7 @@
pixelSize = 1.0f / texture.height();
break;
default:
- SkFAIL("Unknown filter direction.");
+ SK_ABORT("Unknown filter direction.");
}
pdman.set1f(fPixelSizeUni, pixelSize);