From b4aab9ae6d27c446af8302b79d15b832c816c633 Mon Sep 17 00:00:00 2001 From: Ben Wagner Date: Wed, 16 Aug 2017 10:53:04 -0400 Subject: 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 Commit-Queue: Ben Wagner --- bench/RotatedRectBench.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bench/RotatedRectBench.cpp') diff --git a/bench/RotatedRectBench.cpp b/bench/RotatedRectBench.cpp index d9ee5823bf..6a11c2305c 100644 --- a/bench/RotatedRectBench.cpp +++ b/bench/RotatedRectBench.cpp @@ -35,7 +35,7 @@ static inline SkColor start_color(ColorType ct) { case kChangingTransparent_ColorType: return 0x80A07040; } - SkFAIL("Shouldn't reach here."); + SK_ABORT("Shouldn't reach here."); return 0; } @@ -52,9 +52,9 @@ static inline SkColor advance_color(SkColor old, ColorType ct, int step) { case kChangingTransparent_ColorType: return (0x00FFFFFF & (old + 0x00010307)) | 0x80000000; case kAlternatingOpaqueAndTransparent_ColorType: - SkFAIL("Can't get here"); + SK_ABORT("Can't get here"); } - SkFAIL("Shouldn't reach here."); + SK_ABORT("Shouldn't reach here."); return 0; } -- cgit v1.2.3