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