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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 | 167 |
168 // Don't purge if this count is > 0; | 168 // Don't purge if this count is > 0; |
169 int m_purgePreventCount; | 169 int m_purgePreventCount; |
170 | 170 |
171 #if OS(WIN) | 171 #if OS(WIN) |
172 OwnPtr<SkFontMgr> m_fontManager; | 172 OwnPtr<SkFontMgr> m_fontManager; |
173 static bool s_useDirectWrite; | 173 static bool s_useDirectWrite; |
174 static IDWriteFactory* s_directWriteFactory; | 174 static IDWriteFactory* s_directWriteFactory; |
175 static float s_deviceScaleFactor; | 175 static float s_deviceScaleFactor; |
176 static bool s_useSubpixelPositioning; | 176 static bool s_useSubpixelPositioning; |
177 static HashMap<String, RefPtr<SkTypeface> >* s_sideloadedFonts; | 177 static HashMap<String, RefPtr<SkTypeface>>* s_sideloadedFonts; |
178 // The system font metrics cache. | 178 // The system font metrics cache. |
179 static AtomicString* s_menuFontFamilyName; | 179 static AtomicString* s_menuFontFamilyName; |
180 static int32_t s_menuFontHeight; | 180 static int32_t s_menuFontHeight; |
181 static AtomicString* s_smallCaptionFontFamilyName; | 181 static AtomicString* s_smallCaptionFontFamilyName; |
182 static int32_t s_smallCaptionFontHeight; | 182 static int32_t s_smallCaptionFontHeight; |
183 static AtomicString* s_statusFontFamilyName; | 183 static AtomicString* s_statusFontFamilyName; |
184 static int32_t s_statusFontHeight; | 184 static int32_t s_statusFontHeight; |
185 #endif | 185 #endif |
186 | 186 |
187 #if OS(MACOSX) || OS(ANDROID) | 187 #if OS(MACOSX) || OS(ANDROID) |
188 friend class ComplexTextController; | 188 friend class ComplexTextController; |
189 #endif | 189 #endif |
190 friend class SimpleFontData; // For fontDataFromFontPlatformData | 190 friend class SimpleFontData; // For fontDataFromFontPlatformData |
191 friend class FontFallbackList; | 191 friend class FontFallbackList; |
192 }; | 192 }; |
193 | 193 |
194 class PLATFORM_EXPORT FontCachePurgePreventer { | 194 class PLATFORM_EXPORT FontCachePurgePreventer { |
195 public: | 195 public: |
196 FontCachePurgePreventer() { FontCache::fontCache()->disablePurging(); } | 196 FontCachePurgePreventer() { FontCache::fontCache()->disablePurging(); } |
197 ~FontCachePurgePreventer() { FontCache::fontCache()->enablePurging(); } | 197 ~FontCachePurgePreventer() { FontCache::fontCache()->enablePurging(); } |
198 }; | 198 }; |
199 | 199 |
200 } // namespace blink | 200 } // namespace blink |
201 | 201 |
202 #endif | 202 #endif |
OLD | NEW |