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

Changeset 254067 in webkit


Ignore:
Timestamp:
Jan 6, 2020, 11:16:18 AM (7 years ago)
Author:
pvollan@apple.com
Message:

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.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r254065 r254067  
     12020-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
    1122020-01-06  Yusuke Suzuki  <ysuzuki@apple.com>
    213
  • trunk/Source/WebCore/platform/graphics/cocoa/FontCacheCoreText.cpp

    r253498 r254067  
    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.