diff options
author | Ben Wagner <bungeman@google.com> | 2017-08-16 10:53:04 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-08-16 15:37:54 +0000 |
commit | b4aab9ae6d27c446af8302b79d15b832c816c633 (patch) | |
tree | 27e7f87a7a5e3d61990bc2742d9b9f167d26e0c3 /src/gpu/mtl | |
parent | edf3dc094b0fc55bfc932539da1127484051b474 (diff) |
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>
Diffstat (limited to 'src/gpu/mtl')
-rw-r--r-- | src/gpu/mtl/GrMtlCaps.mm | 2 | ||||
-rw-r--r-- | src/gpu/mtl/GrMtlUtil.mm | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gpu/mtl/GrMtlCaps.mm b/src/gpu/mtl/GrMtlCaps.mm index 29e28cff03..57832c412b 100644 --- a/src/gpu/mtl/GrMtlCaps.mm +++ b/src/gpu/mtl/GrMtlCaps.mm @@ -96,7 +96,7 @@ void GrMtlCaps::initFeatureSet(MTLFeatureSet featureSet) { } #endif // No supported feature sets were found - SkFAIL("Requested an unsupported feature set"); + SK_ABORT("Requested an unsupported feature set"); } void GrMtlCaps::initGrCaps(const id<MTLDevice> device) { diff --git a/src/gpu/mtl/GrMtlUtil.mm b/src/gpu/mtl/GrMtlUtil.mm index d1bbf6e6bc..24643669ea 100644 --- a/src/gpu/mtl/GrMtlUtil.mm +++ b/src/gpu/mtl/GrMtlUtil.mm @@ -64,7 +64,7 @@ bool GrPixelConfigToMTLFormat(GrPixelConfig config, MTLPixelFormat* format) { *format = MTLPixelFormatR16Float; return true; } - SkFAIL("Unexpected config"); + SK_ABORT("Unexpected config"); return false; } |