Changeset 254585 in webkit
- Timestamp:
- Jan 15, 2020, 11:14:34 AM (7 years ago)
- Location:
- branches/safari-609-branch/Source/WebCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
platform/graphics/cocoa/FontCacheCoreText.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/safari-609-branch/Source/WebCore/ChangeLog
r254582 r254585 1 2020-01-14 Alan Coon <alancoon@apple.com> 2 3 Cherry-pick r254067. rdar://problem/58552878 4 5 REGRESSION(r247626): Introduced memory regression 6 https://bugs.webkit.org/show_bug.cgi?id=205815 7 8 Unreviewed rollout of https://trac.webkit.org/changeset/247626/webkit. 9 10 * platform/graphics/cocoa/FontCacheCoreText.cpp: 11 (WebCore::FontCache::prewarmGlobally): 12 (WebCore::fontFamiliesForPrewarming): Deleted. 13 14 15 16 git-svn-id: https://svn.webkit.org/repository/webkit/trunk@254067 268f45cc-cd09-0410-ab3c-d52691b4dbfc 17 18 2020-01-06 Per Arne Vollan <pvollan@apple.com> 19 20 REGRESSION(r247626): Introduced memory regression 21 https://bugs.webkit.org/show_bug.cgi?id=205815 22 23 Unreviewed rollout of https://trac.webkit.org/changeset/247626/webkit. 24 25 * platform/graphics/cocoa/FontCacheCoreText.cpp: 26 (WebCore::FontCache::prewarmGlobally): 27 (WebCore::fontFamiliesForPrewarming): Deleted. 28 1 29 2020-01-14 Alan Coon <alancoon@apple.com> 2 30 -
branches/safari-609-branch/Source/WebCore/platform/graphics/cocoa/FontCacheCoreText.cpp
r253498 r254585 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.