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 char*); |
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 } |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 WTF_MAKE_NONCOPYABLE(FontCachePurgePreventer); | 268 WTF_MAKE_NONCOPYABLE(FontCachePurgePreventer); |
269 | 269 |
270 public: | 270 public: |
271 FontCachePurgePreventer() { FontCache::fontCache()->disablePurging(); } | 271 FontCachePurgePreventer() { FontCache::fontCache()->disablePurging(); } |
272 ~FontCachePurgePreventer() { FontCache::fontCache()->enablePurging(); } | 272 ~FontCachePurgePreventer() { FontCache::fontCache()->enablePurging(); } |
273 }; | 273 }; |
274 | 274 |
275 } // namespace blink | 275 } // namespace blink |
276 | 276 |
277 #endif | 277 #endif |
OLD | NEW |