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

Side by Side Diff: include/ports/SkFontMgr_android.h

Issue 1673373003: Add support for caching font files in the Android SkFontMgr. (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Remove unnecessary fIsolated var. Created 4 years, 10 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
« no previous file with comments | « no previous file | src/ports/SkFontMgr_android.cpp » ('j') | src/ports/SkFontMgr_android.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2015 Google Inc. 2 * Copyright 2015 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkFontMgr_android_DEFINED 8 #ifndef SkFontMgr_android_DEFINED
9 #define SkFontMgr_android_DEFINED 9 #define SkFontMgr_android_DEFINED
10 10
(...skipping 21 matching lines...) Expand all
32 /** Base path to resolve relative font file names. If a directory, should en d with '/'. */ 32 /** Base path to resolve relative font file names. If a directory, should en d with '/'. */
33 const char* fBasePath; 33 const char* fBasePath;
34 34
35 /** Optional custom configuration file to use. */ 35 /** Optional custom configuration file to use. */
36 const char* fFontsXml; 36 const char* fFontsXml;
37 37
38 /** Optional custom configuration file for fonts which provide fallback. 38 /** Optional custom configuration file for fonts which provide fallback.
39 * In the new style (version > 21) fontsXml format is used, this should be NULL. 39 * In the new style (version > 21) fontsXml format is used, this should be NULL.
40 */ 40 */
41 const char* fFallbackFontsXml; 41 const char* fFallbackFontsXml;
42
43 /** Optional custom flag. If set to true the SkFontMgr will acquire all requ isite
44 * system IO resources on initialization.
45 */
46 bool fIsolated;
bungeman-skia 2016/02/12 18:59:35 Question for reed: should this be an enum?
42 }; 47 };
43 48
44 /** Create a font manager for Android. If 'custom' is NULL, use only system font s. */ 49 /** Create a font manager for Android. If 'custom' is NULL, use only system font s. */
45 SK_API SkFontMgr* SkFontMgr_New_Android(const SkFontMgr_Android_CustomFonts* cus tom); 50 SK_API SkFontMgr* SkFontMgr_New_Android(const SkFontMgr_Android_CustomFonts* cus tom);
46 51
47 #endif // SkFontMgr_android_DEFINED 52 #endif // SkFontMgr_android_DEFINED
OLDNEW
« no previous file with comments | « no previous file | src/ports/SkFontMgr_android.cpp » ('j') | src/ports/SkFontMgr_android.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698