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

Unified Diff: src/ports/SkFontConfigInterface_android.cpp

Issue 451093002: Use test config in SkFontMgr_android. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Move logic out to factory. Created 6 years, 4 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
Index: src/ports/SkFontConfigInterface_android.cpp
diff --git a/src/ports/SkFontConfigInterface_android.cpp b/src/ports/SkFontConfigInterface_android.cpp
index 1651ac9c05eaf4694d82686b7148ad1d43212657..cba9f37c35601562bb5e07dbd726f7a4dead5f8f 100644
--- a/src/ports/SkFontConfigInterface_android.cpp
+++ b/src/ports/SkFontConfigInterface_android.cpp
@@ -577,3 +577,10 @@ void SkUseTestFontConfigFile(const char* mainconf, const char* fallbackconf,
SkDEBUGF(("Use Test Config File Main %s, Fallback %s, Font Dir %s",
gTestMainConfigFile, gTestFallbackConfigFile, gTestFontFilePrefix));
}
+
+void SkGetTestFontConfiguration(const char** mainconf, const char** fallbackconf,
+ const char** fontsdir) {
+ *mainconf = gTestMainConfigFile;
+ *fallbackconf = gTestFallbackConfigFile;
+ *fontsdir = gTestFontFilePrefix;
+}

Powered by Google App Engine
This is Rietveld 408576698