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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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) | 118 #if !OS(MACOSX) |
119 static const AtomicString& systemFontFamily(); | 119 static const AtomicString& systemFontFamily(); |
120 #else | 120 #else |
121 static const AtomicString& legacySystemFontFamily(); | 121 static const AtomicString& legacySystemFontFamily(); |
122 #endif | 122 #endif |
123 #if OS(LINUX) | 123 #if OS(LINUX) || OS(ANDROID) |
124 static void setSystemFontFamily(const char*); | 124 static void setSystemFontFamily(const AtomicString&); |
125 #endif | 125 #endif |
126 | 126 |
127 #if OS(WIN) | 127 #if OS(WIN) |
128 static bool antialiasedTextEnabled() { return s_antialiasedTextEnabled; } | 128 static bool antialiasedTextEnabled() { return s_antialiasedTextEnabled; } |
129 static bool lcdTextEnabled() { return s_lcdTextEnabled; } | 129 static bool lcdTextEnabled() { return s_lcdTextEnabled; } |
130 static float deviceScaleFactor() { return s_deviceScaleFactor; } | 130 static float deviceScaleFactor() { return s_deviceScaleFactor; } |
131 static void setAntialiasedTextEnabled(bool enabled) { | 131 static void setAntialiasedTextEnabled(bool enabled) { |
132 s_antialiasedTextEnabled = enabled; | 132 s_antialiasedTextEnabled = enabled; |
133 } | 133 } |
134 static void setLCDTextEnabled(bool enabled) { s_lcdTextEnabled = enabled; } | 134 static void setLCDTextEnabled(bool enabled) { s_lcdTextEnabled = enabled; } |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 WTF_MAKE_NONCOPYABLE(FontCachePurgePreventer); | 271 WTF_MAKE_NONCOPYABLE(FontCachePurgePreventer); |
272 | 272 |
273 public: | 273 public: |
274 FontCachePurgePreventer() { FontCache::fontCache()->disablePurging(); } | 274 FontCachePurgePreventer() { FontCache::fontCache()->disablePurging(); } |
275 ~FontCachePurgePreventer() { FontCache::fontCache()->enablePurging(); } | 275 ~FontCachePurgePreventer() { FontCache::fontCache()->enablePurging(); } |
276 }; | 276 }; |
277 | 277 |
278 } // namespace blink | 278 } // namespace blink |
279 | 279 |
280 #endif | 280 #endif |
OLD | NEW |