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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 ShapeCache* getShapeCache(const FallbackListCompositeKey&); | 108 ShapeCache* getShapeCache(const FallbackListCompositeKey&); |
109 | 109 |
110 void addClient(FontCacheClient*); | 110 void addClient(FontCacheClient*); |
111 | 111 |
112 unsigned short generation(); | 112 unsigned short generation(); |
113 void invalidate(); | 113 void invalidate(); |
114 | 114 |
115 SkFontMgr* fontManager() { return m_fontManager.get(); } | 115 SkFontMgr* fontManager() { return m_fontManager.get(); } |
116 static void setFontManager(const sk_sp<SkFontMgr>&); | 116 static void setFontManager(const sk_sp<SkFontMgr>&); |
117 | 117 |
| 118 #if !OS(MACOSX) |
| 119 static const AtomicString& systemFontFamily(); |
| 120 #else |
| 121 static const AtomicString& legacySystemFontFamily(); |
| 122 #endif |
| 123 #if OS(LINUX) |
| 124 static void setSystemFontFamily(const char*); |
| 125 #endif |
| 126 |
118 #if OS(WIN) | 127 #if OS(WIN) |
119 static bool antialiasedTextEnabled() { return s_antialiasedTextEnabled; } | 128 static bool antialiasedTextEnabled() { return s_antialiasedTextEnabled; } |
120 static bool lcdTextEnabled() { return s_lcdTextEnabled; } | 129 static bool lcdTextEnabled() { return s_lcdTextEnabled; } |
121 static float deviceScaleFactor() { return s_deviceScaleFactor; } | 130 static float deviceScaleFactor() { return s_deviceScaleFactor; } |
122 static void setAntialiasedTextEnabled(bool enabled) { | 131 static void setAntialiasedTextEnabled(bool enabled) { |
123 s_antialiasedTextEnabled = enabled; | 132 s_antialiasedTextEnabled = enabled; |
124 } | 133 } |
125 static void setLCDTextEnabled(bool enabled) { s_lcdTextEnabled = enabled; } | 134 static void setLCDTextEnabled(bool enabled) { s_lcdTextEnabled = enabled; } |
126 static void setDeviceScaleFactor(float deviceScaleFactor) { | 135 static void setDeviceScaleFactor(float deviceScaleFactor) { |
127 s_deviceScaleFactor = deviceScaleFactor; | 136 s_deviceScaleFactor = deviceScaleFactor; |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 WTF_MAKE_NONCOPYABLE(FontCachePurgePreventer); | 267 WTF_MAKE_NONCOPYABLE(FontCachePurgePreventer); |
259 | 268 |
260 public: | 269 public: |
261 FontCachePurgePreventer() { FontCache::fontCache()->disablePurging(); } | 270 FontCachePurgePreventer() { FontCache::fontCache()->disablePurging(); } |
262 ~FontCachePurgePreventer() { FontCache::fontCache()->enablePurging(); } | 271 ~FontCachePurgePreventer() { FontCache::fontCache()->enablePurging(); } |
263 }; | 272 }; |
264 | 273 |
265 } // namespace blink | 274 } // namespace blink |
266 | 275 |
267 #endif | 276 #endif |
OLD | NEW |