aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench/RotatedRectBench.cpp
diff options
context:
space:
mode:
authorGravatar Ben Wagner <bungeman@google.com>2017-08-16 10:53:04 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-08-16 15:37:54 +0000
commitb4aab9ae6d27c446af8302b79d15b832c816c633 (patch)
tree27e7f87a7a5e3d61990bc2742d9b9f167d26e0c3 /bench/RotatedRectBench.cpp
parentedf3dc094b0fc55bfc932539da1127484051b474 (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 'bench/RotatedRectBench.cpp')
-rw-r--r--bench/RotatedRectBench.cpp6
1 files changed, 3 insertions, 3 deletions
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;
}