OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2013 The Android Open Source Project | 3 * Copyright 2013 The Android Open Source Project |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 #include "SkFontConfigInterface.h" | 9 #include "SkFontConfigInterface.h" |
10 #include "SkTypeface_android.h" | 10 #include "SkTypeface_android.h" |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 } | 148 } |
149 | 149 |
150 gFontConfigInterface = new SkFontConfigInterfaceAndroid(fontFamilies); | 150 gFontConfigInterface = new SkFontConfigInterfaceAndroid(fontFamilies); |
151 | 151 |
152 // cleanup the data we received from the parser | 152 // cleanup the data we received from the parser |
153 fontFamilies.deleteAll(); | 153 fontFamilies.deleteAll(); |
154 } | 154 } |
155 return gFontConfigInterface; | 155 return gFontConfigInterface; |
156 } | 156 } |
157 | 157 |
158 SkFontConfigInterface* SkFontConfigInterface::GetSingletonDirectInterface(SkBase
Mutex*) { | 158 SkFontConfigInterface* SkFontConfigInterface::GetSingletonDirectInterface() { |
159 // Doesn't need passed-in mutex because getSingletonInterface() uses one | |
160 return getSingletonInterface(); | 159 return getSingletonInterface(); |
161 } | 160 } |
162 | 161 |
163 /////////////////////////////////////////////////////////////////////////////// | 162 /////////////////////////////////////////////////////////////////////////////// |
164 | 163 |
165 static bool has_font(const SkTArray<FontRec>& array, const SkString& filename) { | 164 static bool has_font(const SkTArray<FontRec>& array, const SkString& filename) { |
166 for (int i = 0; i < array.count(); i++) { | 165 for (int i = 0; i < array.count(); i++) { |
167 if (array[i].fFileName == filename) { | 166 if (array[i].fFileName == filename) { |
168 return true; | 167 return true; |
169 } | 168 } |
(...skipping 737 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
907 return SkSafeRef(retTypeface); | 906 return SkSafeRef(retTypeface); |
908 } | 907 } |
909 | 908 |
910 #endif | 909 #endif |
911 | 910 |
912 /////////////////////////////////////////////////////////////////////////////// | 911 /////////////////////////////////////////////////////////////////////////////// |
913 | 912 |
914 SkFontMgr* SkFontMgr::Factory() { | 913 SkFontMgr* SkFontMgr::Factory() { |
915 return NULL; | 914 return NULL; |
916 } | 915 } |
OLD | NEW |