Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(515)

Unified Diff: gm/fontmgr.cpp

Issue 1245643002: Generate platform specific fontmgr gm. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: add key placeholder to enable SampleApp and VisualBench to link Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | samplecode/SampleApp.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/fontmgr.cpp
diff --git a/gm/fontmgr.cpp b/gm/fontmgr.cpp
index 14ea7ea3770218e9181adc92684d627fc85ca706..35914e798cfde28793da3e877cd507cae125e4da 100644
--- a/gm/fontmgr.cpp
+++ b/gm/fontmgr.cpp
@@ -65,6 +65,8 @@ public:
} else {
fFM.reset(SkFontMgr::RefDefault());
}
+ fName.append(sk_tool_utils::platform_os_name());
+ fName.append(sk_tool_utils::platform_extra_config("GDI"));
}
protected:
@@ -131,7 +133,10 @@ public:
protected:
SkString onShortName() override {
- return SkString("fontmgr_match");
+ SkString name("fontmgr_match");
+ name.append(sk_tool_utils::platform_os_name());
+ name.append(sk_tool_utils::platform_extra_config("GDI"));
+ return name;
}
SkISize onISize() override {
@@ -218,6 +223,8 @@ 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"));
fFM.reset(SkFontMgr::RefDefault());
}
« no previous file with comments | « no previous file | samplecode/SampleApp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698