| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2008 Google Inc. | 2 * Copyright 2008 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 #include "SkFontConfigInterface.h" | 8 #include "SkFontConfigInterface.h" |
| 9 #include "SkFontMgr.h" | 9 #include "SkFontMgr.h" |
| 10 #include "SkMutex.h" | 10 #include "SkMutex.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 return SkRef(gFontConfigInterface); | 35 return SkRef(gFontConfigInterface); |
| 36 } | 36 } |
| 37 gFontConfigInterface = SkRef(SkFontConfigInterface::GetSingletonDirectInterf
ace()); | 37 gFontConfigInterface = SkRef(SkFontConfigInterface::GetSingletonDirectInterf
ace()); |
| 38 return gFontConfigInterface; | 38 return gFontConfigInterface; |
| 39 } | 39 } |
| 40 | 40 |
| 41 SkFontMgr* SkFontMgr::Factory() { | 41 SkFontMgr* SkFontMgr::Factory() { |
| 42 SkFontConfigInterface* fci = init_FCI(); | 42 SkFontConfigInterface* fci = init_FCI(); |
| 43 return fci ? SkFontMgr_New_FCI(fci) : nullptr; | 43 return fci ? SkFontMgr_New_FCI(fci) : nullptr; |
| 44 } | 44 } |
| OLD | NEW |