| 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 | 129 |
| 130 // Implemented on skia platforms. | 130 // Implemented on skia platforms. |
| 131 PassRefPtr<SkTypeface> createTypeface(const FontDescription&, const FontFace
CreationParams&, CString& name); | 131 PassRefPtr<SkTypeface> createTypeface(const FontDescription&, const FontFace
CreationParams&, CString& name); |
| 132 | 132 |
| 133 PassRefPtr<SimpleFontData> fontDataFromFontPlatformData(const FontPlatformDa
ta*, ShouldRetain = Retain); | 133 PassRefPtr<SimpleFontData> fontDataFromFontPlatformData(const FontPlatformDa
ta*, ShouldRetain = Retain); |
| 134 PassRefPtr<SimpleFontData> fallbackOnStandardFontStyle(const FontDescription
&, UChar32); | 134 PassRefPtr<SimpleFontData> fallbackOnStandardFontStyle(const FontDescription
&, UChar32); |
| 135 | 135 |
| 136 // Don't purge if this count is > 0; | 136 // Don't purge if this count is > 0; |
| 137 int m_purgePreventCount; | 137 int m_purgePreventCount; |
| 138 | 138 |
| 139 #if OS(MACOSX) || OS(ANDROID) | 139 #if OS(ANDROID) |
| 140 friend class ComplexTextController; | 140 friend class ComplexTextController; |
| 141 #endif | 141 #endif |
| 142 friend class SimpleFontData; // For fontDataFromFontPlatformData | 142 friend class SimpleFontData; // For fontDataFromFontPlatformData |
| 143 friend class FontFallbackList; | 143 friend class FontFallbackList; |
| 144 }; | 144 }; |
| 145 | 145 |
| 146 class PLATFORM_EXPORT FontCachePurgePreventer { | 146 class PLATFORM_EXPORT FontCachePurgePreventer { |
| 147 public: | 147 public: |
| 148 FontCachePurgePreventer() { FontCache::fontCache()->disablePurging(); } | 148 FontCachePurgePreventer() { FontCache::fontCache()->disablePurging(); } |
| 149 ~FontCachePurgePreventer() { FontCache::fontCache()->enablePurging(); } | 149 ~FontCachePurgePreventer() { FontCache::fontCache()->enablePurging(); } |
| 150 }; | 150 }; |
| 151 | 151 |
| 152 } // namespace blink | 152 } // namespace blink |
| 153 | 153 |
| 154 #endif | 154 #endif |
| OLD | NEW |