⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 254585 in webkit


Ignore:
Timestamp:
Jan 15, 2020, 11:14:34 AM (7 years ago)
Author:
Alan Coon
Message:

Cherry-pick r254067. rdar://problem/58552878

REGRESSION(r247626): Introduced memory regression
​https://bugs.webkit.org/show_bug.cgi?id=205815

Unreviewed rollout of ​https://trac.webkit.org/changeset/247626/webkit.

  • platform/graphics/cocoa/FontCacheCoreText.cpp: (WebCore::FontCache::prewarmGlobally): (WebCore::fontFamiliesForPrewarming): Deleted.

git-svn-id: ​https://svn.webkit.org/repository/webkit/trunk@254067 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Location:
branches/safari-609-branch/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-609-branch/Source/WebCore/ChangeLog

    r254582 r254585  
     12020-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
    1292020-01-14  Alan Coon  <alancoon@apple.com>
    230
  • branches/safari-609-branch/Source/WebCore/platform/graphics/cocoa/FontCacheCoreText.cpp

    r253498 r254585  
    16891689}
    16901690
    1691 static Vector<String>& fontFamiliesForPrewarming()
    1692 {
    1693     static NeverDestroyed<Vector<String>> families = std::initializer_list<String> {
     1691void FontCache::prewarmGlobally()
     1692{
     1693    if (MemoryPressureHandler::singleton().isUnderMemoryPressure())
     1694        return;
     1695
     1696    Vector<String> families = std::initializer_list<String> {
    16941697        ".SF NS Text"_s,
    16951698        ".SF NS Display"_s,
    … …  
    17011704        "Times New Roman"_s,
    17021705    };
    1703     return families;
    1704 }
    1705 
    1706 void FontCache::prewarmGlobally()
    1707 {
    1708     if (MemoryPressureHandler::singleton().isUnderMemoryPressure())
    1709         return;
    17101706
    17111707    FontCache::PrewarmInformation prewarmInfo;
    1712     prewarmInfo.seenFamilies = fontFamiliesForPrewarming();
    1713     prewarmInfo.fontNamesRequiringSystemFallback = fontFamiliesForPrewarming();
     1708    prewarmInfo.seenFamilies = WTFMove(families);
    17141709    FontCache::singleton().prewarm(prewarmInfo);
    17151710}
Note: See TracChangeset for help on using the changeset viewer.