Remove uses of sk_throw.
The sk_throw macro is now an alias to SK_ABORT, but is often used when
other macros better describe the situation. This change replaces
sk_throw with SK_ABORT or SkASSERT_RELEASE as appropriate.
Change-Id: I313facc6d535c8e8bec90ceeaf17ae3a381c48f3
Reviewed-on: https://skia-review.googlesource.com/35882
Reviewed-by: Yuqian Li <liyuqian@google.com>
Commit-Queue: Ben Wagner <bungeman@google.com>
diff --git a/src/ports/SkFontHost_FreeType.cpp b/src/ports/SkFontHost_FreeType.cpp
index 5af6190..f892438 100644
--- a/src/ports/SkFontHost_FreeType.cpp
+++ b/src/ports/SkFontHost_FreeType.cpp
@@ -418,9 +418,7 @@
public:
AutoFTAccess(const SkTypeface* tf) : fFaceRec(nullptr) {
gFTMutex.acquire();
- if (!ref_ft_library()) {
- sk_throw();
- }
+ SkASSERT_RELEASE(ref_ft_library());
fFaceRec = ref_ft_face(tf);
}
@@ -764,10 +762,7 @@
, fStrikeIndex(-1)
{
SkAutoMutexAcquire ac(gFTMutex);
-
- if (!ref_ft_library()) {
- sk_throw();
- }
+ SkASSERT_RELEASE(ref_ft_library());
fFaceRec.reset(ref_ft_face(this->getTypeface()));