| 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 static const AtomicString& systemFontFamily(float size); |
| 119 #if OS(LINUX) |
| 120 static void setSystemFontFamily(const char*); |
| 121 #endif |
| 122 #if OS(MACOSX) |
| 123 static const AtomicString& legacySystemFontFamily(); |
| 124 #endif |
| 125 |
| 118 #if OS(WIN) | 126 #if OS(WIN) |
| 119 static bool antialiasedTextEnabled() { return s_antialiasedTextEnabled; } | 127 static bool antialiasedTextEnabled() { return s_antialiasedTextEnabled; } |
| 120 static bool lcdTextEnabled() { return s_lcdTextEnabled; } | 128 static bool lcdTextEnabled() { return s_lcdTextEnabled; } |
| 121 static float deviceScaleFactor() { return s_deviceScaleFactor; } | 129 static float deviceScaleFactor() { return s_deviceScaleFactor; } |
| 122 static void setAntialiasedTextEnabled(bool enabled) { | 130 static void setAntialiasedTextEnabled(bool enabled) { |
| 123 s_antialiasedTextEnabled = enabled; | 131 s_antialiasedTextEnabled = enabled; |
| 124 } | 132 } |
| 125 static void setLCDTextEnabled(bool enabled) { s_lcdTextEnabled = enabled; } | 133 static void setLCDTextEnabled(bool enabled) { s_lcdTextEnabled = enabled; } |
| 126 static void setDeviceScaleFactor(float deviceScaleFactor) { | 134 static void setDeviceScaleFactor(float deviceScaleFactor) { |
| 127 s_deviceScaleFactor = deviceScaleFactor; | 135 s_deviceScaleFactor = deviceScaleFactor; |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 WTF_MAKE_NONCOPYABLE(FontCachePurgePreventer); | 266 WTF_MAKE_NONCOPYABLE(FontCachePurgePreventer); |
| 259 | 267 |
| 260 public: | 268 public: |
| 261 FontCachePurgePreventer() { FontCache::fontCache()->disablePurging(); } | 269 FontCachePurgePreventer() { FontCache::fontCache()->disablePurging(); } |
| 262 ~FontCachePurgePreventer() { FontCache::fontCache()->enablePurging(); } | 270 ~FontCachePurgePreventer() { FontCache::fontCache()->enablePurging(); } |
| 263 }; | 271 }; |
| 264 | 272 |
| 265 } // namespace blink | 273 } // namespace blink |
| 266 | 274 |
| 267 #endif | 275 #endif |
| OLD | NEW |