Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(110)

Side by Side Diff: third_party/WebKit/Source/platform/fonts/FontCache.cpp

Issue 1930503003: Remove font subpixel positioning flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Retain test-only handling on linux Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/fonts/FontCache.h ('k') | third_party/WebKit/Source/platform/fonts/FontPlatformData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698