aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorGravatar djsollen <djsollen@google.com>2016-01-22 06:04:55 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-01-22 06:04:55 -0800
commit4c5cd7d527ed29aabfa72aa47b23a4496eeda357 (patch)
tree49959934e26882dd38d3bb1939f7c9b60d70f10d /tools
parent6d3cef930ad19b0f55543ca40f7a07030f4fe508 (diff)
Consolidate SK_CRASH and sk_throw into SK_ABORT
Diffstat (limited to 'tools')
-rw-r--r--tools/Stats.h2
-rw-r--r--tools/sk_tool_utils_font.cpp2
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.