commit | 1b612a89fba2275e3effe12bdc9b6cdc2f4d9eee | [log] [tgz] |
---|---|---|
author | Hal Canary <halcanary@google.com> | Thu Nov 03 16:26:13 2016 -0400 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Thu Nov 03 21:00:34 2016 +0000 |
tree | 9a1d89d5c6499ce60f3b109f1a03e46ce33e6390 | |
parent | 1b96c6f91377431cd407c43fedac613fff21c2ed [diff] [blame] |
tools: s/SkAutoTUnref/sk_sp/ BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=4391 Change-Id: Iae8b032b00d3579c77f3b86370dde71c4649da45 Reviewed-on: https://skia-review.googlesource.com/4391 Reviewed-by: Ben Wagner <bungeman@google.com> Commit-Queue: Hal Canary <halcanary@google.com>
diff --git a/tools/sk_tool_utils_font.cpp b/tools/sk_tool_utils_font.cpp index a1d50dd..bdd88d0 100644 --- a/tools/sk_tool_utils_font.cpp +++ b/tools/sk_tool_utils_font.cpp
@@ -47,7 +47,7 @@ name, style.weight(), style.width(), style.slant()); // If we called SkTypeface::CreateFromName() here we'd recurse infinitely, // so we reimplement its core logic here inline without the recursive aspect. - SkAutoTUnref<SkFontMgr> fm(SkFontMgr::RefDefault()); + sk_sp<SkFontMgr> fm(SkFontMgr::RefDefault()); return sk_sp<SkTypeface>(fm->legacyCreateTypeface(name, style)); } } else {