diff options
author | caryclark <caryclark@google.com> | 2015-07-24 11:08:01 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-07-24 11:08:01 -0700 |
commit | 37213558e6d269807cde031e59b9567d0db6e471 (patch) | |
tree | 6ea9b08d1366a93e8a66693167128b9db8983e81 /gm/lcdtext.cpp | |
parent | 6c2c2b07ed83e1f83008fac6eb1b62670b1dbdb1 (diff) |
make fontscalar gammatext lcdtext typeface verttext2 gm portable
Pass generic font names to tool util function to generate
platform specific fonts and gm test output by unique name.
R=bungeman@google.com
Review URL: https://codereview.chromium.org/1256903002
Diffstat (limited to 'gm/lcdtext.cpp')
-rw-r--r-- | gm/lcdtext.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gm/lcdtext.cpp b/gm/lcdtext.cpp index 5ea9396f06..6daec824f3 100644 --- a/gm/lcdtext.cpp +++ b/gm/lcdtext.cpp @@ -27,7 +27,9 @@ public: protected: SkString onShortName() { - return SkString("lcdtext"); + SkString name("lcdtext"); + name.append(sk_tool_utils::major_platform_os_name()); + return name; } SkISize onISize() { return SkISize::Make(640, 480); } @@ -51,7 +53,6 @@ protected: paint.setColor(SK_ColorBLACK); paint.setDither(true); paint.setAntiAlias(true); - sk_tool_utils::set_portable_typeface(&paint); paint.setSubpixelText(subpixelTextEnabled); paint.setLCDRenderText(lcdRenderTextEnabled); paint.setTextSize(textHeight); |