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

Side by Side 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 unified diff | Download patch
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2013 The Android Open Source Project 3 * Copyright 2013 The Android Open Source Project
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #include "SkFontConfigInterface.h" 9 #include "SkFontConfigInterface.h"
10 #include "SkTypeface_android.h" 10 #include "SkTypeface_android.h"
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after
570 const char* fontsdir) { 570 const char* fontsdir) {
571 gTestMainConfigFile = mainconf; 571 gTestMainConfigFile = mainconf;
572 gTestFallbackConfigFile = fallbackconf; 572 gTestFallbackConfigFile = fallbackconf;
573 gTestFontFilePrefix = fontsdir; 573 gTestFontFilePrefix = fontsdir;
574 SkASSERT(gTestMainConfigFile); 574 SkASSERT(gTestMainConfigFile);
575 SkASSERT(gTestFallbackConfigFile); 575 SkASSERT(gTestFallbackConfigFile);
576 SkASSERT(gTestFontFilePrefix); 576 SkASSERT(gTestFontFilePrefix);
577 SkDEBUGF(("Use Test Config File Main %s, Fallback %s, Font Dir %s", 577 SkDEBUGF(("Use Test Config File Main %s, Fallback %s, Font Dir %s",
578 gTestMainConfigFile, gTestFallbackConfigFile, gTestFontFilePrefix) ); 578 gTestMainConfigFile, gTestFallbackConfigFile, gTestFontFilePrefix) );
579 } 579 }
580
581 void SkGetTestFontConfiguration(const char** mainconf, const char** fallbackconf ,
582 const char** fontsdir) {
583 *mainconf = gTestMainConfigFile;
584 *fallbackconf = gTestFallbackConfigFile;
585 *fontsdir = gTestFontFilePrefix;
586 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698