diff options
author | djsollen <djsollen@google.com> | 2016-01-22 06:04:55 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-01-22 06:04:55 -0800 |
commit | 4c5cd7d527ed29aabfa72aa47b23a4496eeda357 (patch) | |
tree | 49959934e26882dd38d3bb1939f7c9b60d70f10d /tools | |
parent | 6d3cef930ad19b0f55543ca40f7a07030f4fe508 (diff) |
Consolidate SK_CRASH and sk_throw into SK_ABORT
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1610823002
Review URL: https://codereview.chromium.org/1610823002
Diffstat (limited to 'tools')
-rw-r--r-- | tools/Stats.h | 2 | ||||
-rw-r--r-- | tools/sk_tool_utils_font.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/Stats.h b/tools/Stats.h index 12c1d35e1f..557a2a51a2 100644 --- a/tools/Stats.h +++ b/tools/Stats.h @@ -62,7 +62,7 @@ struct Stats { s /= (max - min); s *= (SK_ARRAY_COUNT(kBars) - 1); const size_t bar = (size_t)(s + 0.5); - SK_ALWAYSBREAK(bar < SK_ARRAY_COUNT(kBars)); + SkASSERT_RELEASE(bar < SK_ARRAY_COUNT(kBars)); plot.append(kBars[bar]); } } diff --git a/tools/sk_tool_utils_font.cpp b/tools/sk_tool_utils_font.cpp index af52b37a4e..0f8c96f617 100644 --- a/tools/sk_tool_utils_font.cpp +++ b/tools/sk_tool_utils_font.cpp @@ -42,7 +42,7 @@ SkTypeface* create_font(const char* name, SkTypeface::Style style) { } if (!fontData) { // Once all legacy callers to portable fonts are converted, replace this with - // SK_CRASH(); + // SK_ABORT(); SkDebugf("missing %s %d\n", name, style); // If we called SkTypeface::CreateFromName() here we'd recurse infinitely, // so we reimplement its core logic here inline without the recursive aspect. |