| 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 SkFontMgr_DEFINED | 8 #ifndef SkFontMgr_DEFINED |
| 9 #define SkFontMgr_DEFINED | 9 #define SkFontMgr_DEFINED |
| 10 | 10 |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 const SkFontStyle&) = 0; | 90 const SkFontStyle&) = 0; |
| 91 virtual SkTypeface* onMatchFaceStyle(const SkTypeface*, | 91 virtual SkTypeface* onMatchFaceStyle(const SkTypeface*, |
| 92 const SkFontStyle&) = 0; | 92 const SkFontStyle&) = 0; |
| 93 | 93 |
| 94 virtual SkTypeface* onCreateFromData(SkData*, int ttcIndex) = 0; | 94 virtual SkTypeface* onCreateFromData(SkData*, int ttcIndex) = 0; |
| 95 virtual SkTypeface* onCreateFromStream(SkStream*, int ttcIndex) = 0; | 95 virtual SkTypeface* onCreateFromStream(SkStream*, int ttcIndex) = 0; |
| 96 virtual SkTypeface* onCreateFromFile(const char path[], int ttcIndex) = 0; | 96 virtual SkTypeface* onCreateFromFile(const char path[], int ttcIndex) = 0; |
| 97 | 97 |
| 98 private: | 98 private: |
| 99 static SkFontMgr* Factory(); // implemented by porting layer | 99 static SkFontMgr* Factory(); // implemented by porting layer |
| 100 static SkMutex* Mutex(); // implemented by porting layer | |
| 101 | 100 |
| 102 typedef SkRefCnt INHERITED; | 101 typedef SkRefCnt INHERITED; |
| 103 }; | 102 }; |
| 104 | 103 |
| 105 #endif | 104 #endif |
| OLD | NEW |