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/gpu/GrResourceCache.cpp b/src/gpu/GrResourceCache.cpp
index 5c4cd57..b781e42 100644
--- a/src/gpu/GrResourceCache.cpp
+++ b/src/gpu/GrResourceCache.cpp
@@ -27,7 +27,7 @@
int32_t type = sk_atomic_inc(&gType);
if (type > SK_MaxU16) {
- SkFAIL("Too many Resource Types");
+ SK_ABORT("Too many Resource Types");
}
return static_cast<ResourceType>(type);
@@ -38,7 +38,7 @@
int32_t domain = sk_atomic_inc(&gDomain);
if (domain > SK_MaxU16) {
- SkFAIL("Too many GrUniqueKey Domains");
+ SK_ABORT("Too many GrUniqueKey Domains");
}
return static_cast<Domain>(domain);