| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2008 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2006, 2008 Apple Computer, Inc. All rights reserved. |
| 3 * Copyright (C) 2007-2008 Torch Mobile, Inc. | 3 * Copyright (C) 2007-2008 Torch Mobile, Inc. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 ASSERT(m_purgePreventCount); | 161 ASSERT(m_purgePreventCount); |
| 162 if (!--m_purgePreventCount) | 162 if (!--m_purgePreventCount) |
| 163 purge(PurgeIfNeeded); | 163 purge(PurgeIfNeeded); |
| 164 } | 164 } |
| 165 | 165 |
| 166 // FIXME: This method should eventually be removed. | 166 // FIXME: This method should eventually be removed. |
| 167 FontPlatformData* getFontPlatformData(const FontDescription&, const FontFace
CreationParams&, bool checkingAlternateName = false); | 167 FontPlatformData* getFontPlatformData(const FontDescription&, const FontFace
CreationParams&, bool checkingAlternateName = false); |
| 168 | 168 |
| 169 // These methods are implemented by each platform. | 169 // These methods are implemented by each platform. |
| 170 PassOwnPtr<FontPlatformData> createFontPlatformData(const FontDescription&,
const FontFaceCreationParams&, float fontSize); | 170 PassOwnPtr<FontPlatformData> createFontPlatformData(const FontDescription&,
const FontFaceCreationParams&, float fontSize); |
| 171 PassOwnPtr<FontPlatformData> scaleFontPlatformData(const FontPlatformData*,
const FontDescription&, const FontFaceCreationParams&, float fontSize); |
| 171 | 172 |
| 172 // Implemented on skia platforms. | 173 // Implemented on skia platforms. |
| 173 PassRefPtr<SkTypeface> createTypeface(const FontDescription&, const FontFace
CreationParams&, CString& name); | 174 PassRefPtr<SkTypeface> createTypeface(const FontDescription&, const FontFace
CreationParams&, CString& name); |
| 174 | 175 |
| 175 #if OS(ANDROID) || OS(LINUX) | 176 #if OS(ANDROID) || OS(LINUX) |
| 176 static AtomicString getFamilyNameForCharacter(SkFontMgr*, UChar32, const Fon
tDescription&, FontFallbackPriority); | 177 static AtomicString getFamilyNameForCharacter(SkFontMgr*, UChar32, const Fon
tDescription&, FontFallbackPriority); |
| 177 #endif | 178 #endif |
| 178 | 179 |
| 179 PassRefPtr<SimpleFontData> fallbackOnStandardFontStyle(const FontDescription
&, UChar32); | 180 PassRefPtr<SimpleFontData> fallbackOnStandardFontStyle(const FontDescription
&, UChar32); |
| 180 | 181 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 210 public: | 211 public: |
| 211 FontCachePurgePreventer() { FontCache::fontCache()->disablePurging(); } | 212 FontCachePurgePreventer() { FontCache::fontCache()->disablePurging(); } |
| 212 ~FontCachePurgePreventer() { FontCache::fontCache()->enablePurging(); } | 213 ~FontCachePurgePreventer() { FontCache::fontCache()->enablePurging(); } |
| 213 }; | 214 }; |
| 214 | 215 |
| 215 CString toSkFontMgrLocale(const String& locale); | 216 CString toSkFontMgrLocale(const String& locale); |
| 216 | 217 |
| 217 } // namespace blink | 218 } // namespace blink |
| 218 | 219 |
| 219 #endif | 220 #endif |
| OLD | NEW |