Changeset 254067 in webkit
- Timestamp:
- Jan 6, 2020, 11:16:18 AM (7 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
platform/graphics/cocoa/FontCacheCoreText.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r254065 r254067 1 2020-01-06 Per Arne Vollan <pvollan@apple.com> 2 3 REGRESSION(r247626): Introduced memory regression 4 https://bugs.webkit.org/show_bug.cgi?id=205815 5 6 Unreviewed rollout of https://trac.webkit.org/changeset/247626/webkit. 7 8 * platform/graphics/cocoa/FontCacheCoreText.cpp: 9 (WebCore::FontCache::prewarmGlobally): 10 (WebCore::fontFamiliesForPrewarming): Deleted. 11 1 12 2020-01-06 Yusuke Suzuki <ysuzuki@apple.com> 2 13 -
trunk/Source/WebCore/platform/graphics/cocoa/FontCacheCoreText.cpp
r253498 r254067 1689 1689 } 1690 1690 1691 static Vector<String>& fontFamiliesForPrewarming() 1692 { 1693 static NeverDestroyed<Vector<String>> families = std::initializer_list<String> { 1691 void FontCache::prewarmGlobally() 1692 { 1693 if (MemoryPressureHandler::singleton().isUnderMemoryPressure()) 1694 return; 1695 1696 Vector<String> families = std::initializer_list<String> { 1694 1697 ".SF NS Text"_s, 1695 1698 ".SF NS Display"_s, … … 1701 1704 "Times New Roman"_s, 1702 1705 }; 1703 return families;1704 }1705 1706 void FontCache::prewarmGlobally()1707 {1708 if (MemoryPressureHandler::singleton().isUnderMemoryPressure())1709 return;1710 1706 1711 1707 FontCache::PrewarmInformation prewarmInfo; 1712 prewarmInfo.seenFamilies = fontFamiliesForPrewarming(); 1713 prewarmInfo.fontNamesRequiringSystemFallback = fontFamiliesForPrewarming(); 1708 prewarmInfo.seenFamilies = WTFMove(families); 1714 1709 FontCache::singleton().prewarm(prewarmInfo); 1715 1710 }
Note:
See TracChangeset
for help on using the changeset viewer.