| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> | 3 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> |
| 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 typedef HashMap<FallbackListCompositeKey, OwnPtr<ShapeCache>, FallbackListCompos
iteKeyHash, FallbackListCompositeKeyTraits> FallbackListShaperCache; | 71 typedef HashMap<FallbackListCompositeKey, OwnPtr<ShapeCache>, FallbackListCompos
iteKeyHash, FallbackListCompositeKeyTraits> FallbackListShaperCache; |
| 72 | 72 |
| 73 static FontPlatformDataCache* gFontPlatformDataCache = nullptr; | 73 static FontPlatformDataCache* gFontPlatformDataCache = nullptr; |
| 74 static FallbackListShaperCache* gFallbackListShaperCache = nullptr; | 74 static FallbackListShaperCache* gFallbackListShaperCache = nullptr; |
| 75 | 75 |
| 76 SkFontMgr* FontCache::s_fontManager = nullptr; | 76 SkFontMgr* FontCache::s_fontManager = nullptr; |
| 77 | 77 |
| 78 #if OS(WIN) | 78 #if OS(WIN) |
| 79 bool FontCache::s_antialiasedTextEnabled = false; | 79 bool FontCache::s_antialiasedTextEnabled = false; |
| 80 bool FontCache::s_lcdTextEnabled = false; | 80 bool FontCache::s_lcdTextEnabled = false; |
| 81 bool FontCache::s_useSubpixelPositioning = false; | |
| 82 float FontCache::s_deviceScaleFactor = 1.0; | 81 float FontCache::s_deviceScaleFactor = 1.0; |
| 83 bool FontCache::s_useSkiaFontFallback = false; | 82 bool FontCache::s_useSkiaFontFallback = false; |
| 84 #endif // OS(WIN) | 83 #endif // OS(WIN) |
| 85 | 84 |
| 86 FontCache* FontCache::fontCache() | 85 FontCache* FontCache::fontCache() |
| 87 { | 86 { |
| 88 DEFINE_STATIC_LOCAL(FontCache, globalFontCache, ()); | 87 DEFINE_STATIC_LOCAL(FontCache, globalFontCache, ()); |
| 89 return &globalFontCache; | 88 return &globalFontCache; |
| 90 } | 89 } |
| 91 | 90 |
| (...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 385 case USCRIPT_SIMPLIFIED_HAN: | 384 case USCRIPT_SIMPLIFIED_HAN: |
| 386 return "zh-Hans"; | 385 return "zh-Hans"; |
| 387 case USCRIPT_TRADITIONAL_HAN: | 386 case USCRIPT_TRADITIONAL_HAN: |
| 388 return "zh-Hant"; | 387 return "zh-Hant"; |
| 389 default: | 388 default: |
| 390 return locale.ascii(); | 389 return locale.ascii(); |
| 391 } | 390 } |
| 392 } | 391 } |
| 393 | 392 |
| 394 } // namespace blink | 393 } // namespace blink |
| OLD | NEW |