aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/fontmgr.cpp
diff options
context:
space:
mode:
authorGravatar Mike Klein <mtklein@chromium.org>2017-11-13 11:03:16 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-11-13 17:00:51 +0000
commitb251b72d3d91fb7976f7984ae60793c87d0dae4c (patch)
tree095ee9667fe02d292d53eb358960713941971de4 /gm/fontmgr.cpp
parentf1729a79379d65d7d373594e4f0d713d99beb1f2 (diff)
add platform_font_manager()
This string replaces {major_}platform_os_name() and platform_extra_config() for the font-focused GMs using them. The GDI bots will report "GDI", the NativeFont bots their OS, and other bots "". Change-Id: I8f7bb1ffea3cc91601c98b4ccff7a3a234ac77d3 Reviewed-on: https://skia-review.googlesource.com/70500 Reviewed-by: Ben Wagner <bungeman@google.com> Commit-Queue: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'gm/fontmgr.cpp')
-rw-r--r--gm/fontmgr.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/gm/fontmgr.cpp b/gm/fontmgr.cpp
index 9708d19978..b604175b0f 100644
--- a/gm/fontmgr.cpp
+++ b/gm/fontmgr.cpp
@@ -65,8 +65,7 @@ public:
} else {
fFM = SkFontMgr::RefDefault();
}
- fName.append(sk_tool_utils::platform_os_name());
- fName.append(sk_tool_utils::platform_extra_config("GDI"));
+ fName.append(sk_tool_utils::platform_font_manager());
}
protected:
@@ -134,8 +133,7 @@ public:
protected:
SkString onShortName() override {
SkString name("fontmgr_match");
- name.append(sk_tool_utils::platform_os_name());
- name.append(sk_tool_utils::platform_extra_config("GDI"));
+ name.append(sk_tool_utils::platform_font_manager());
return name;
}
@@ -223,8 +221,7 @@ public:
if (scale != 1 || skew != 0) {
fName.appendf("_%g_%g", scale, skew);
}
- fName.append(sk_tool_utils::platform_os_name());
- fName.append(sk_tool_utils::platform_extra_config("GDI"));
+ fName.append(sk_tool_utils::platform_font_manager());
fFM = SkFontMgr::RefDefault();
}