OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 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 SkFontConfigInterface_DEFINED | 8 #ifndef SkFontConfigInterface_DEFINED |
9 #define SkFontConfigInterface_DEFINED | 9 #define SkFontConfigInterface_DEFINED |
10 | 10 |
11 #include "SkDataTable.h" | 11 #include "SkDataTable.h" |
12 #include "SkFontStyle.h" | 12 #include "SkFontStyle.h" |
13 #include "SkRefCnt.h" | 13 #include "SkRefCnt.h" |
14 #include "SkTypeface.h" | 14 #include "SkTypeface.h" |
15 | 15 |
| 16 struct SkBaseMutex; |
16 class SkFontMgr; | 17 class SkFontMgr; |
17 | 18 |
18 /** | 19 /** |
19 * \class SkFontConfigInterface | 20 * \class SkFontConfigInterface |
20 * | 21 * |
21 * A simple interface for remotable font management. | 22 * A simple interface for remotable font management. |
22 * The global instance can be found with RefGlobal(). | 23 * The global instance can be found with RefGlobal(). |
23 */ | 24 */ |
24 class SK_API SkFontConfigInterface : public SkRefCnt { | 25 class SK_API SkFontConfigInterface : public SkRefCnt { |
25 public: | 26 public: |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 // New APIS, which have default impls for now (which do nothing) | 115 // New APIS, which have default impls for now (which do nothing) |
115 | 116 |
116 virtual SkDataTable* getFamilyNames() { return SkDataTable::NewEmpty(); } | 117 virtual SkDataTable* getFamilyNames() { return SkDataTable::NewEmpty(); } |
117 typedef SkRefCnt INHERITED; | 118 typedef SkRefCnt INHERITED; |
118 }; | 119 }; |
119 | 120 |
120 /** Creates a SkFontMgr which wraps a SkFontConfigInterface. */ | 121 /** Creates a SkFontMgr which wraps a SkFontConfigInterface. */ |
121 SK_API SkFontMgr* SkFontMgr_New_FCI(SkFontConfigInterface* fci); | 122 SK_API SkFontMgr* SkFontMgr_New_FCI(SkFontConfigInterface* fci); |
122 | 123 |
123 #endif | 124 #endif |
OLD | NEW |