Changeset 196712 in webkit
- Timestamp:
- Feb 17, 2016 12:27:56 PM (8 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r196711 r196712 1 2016-02-17 Andreas Kling <akling@apple.com> 2 3 [iOS] Purge GraphicsServices font cache on memory warning. 4 <https://webkit.org/b/154343> 5 6 Reviewed by Antti Koivisto. 7 8 The GS font cache was holding on to the last retain on CSS fonts after they stop being used. 9 Call SPI to purge it on memory pressure. 10 11 * platform/cocoa/MemoryPressureHandlerCocoa.mm: 12 (WebCore::MemoryPressureHandler::platformReleaseMemory): 13 * platform/spi/ios/GraphicsServicesSPI.h: 14 1 15 2016-02-17 Chris Dumez <cdumez@apple.com> 2 16 -
trunk/Source/WebCore/platform/cocoa/MemoryPressureHandlerCocoa.mm
r194318 r196712 41 41 42 42 #if PLATFORM(IOS) 43 #import "GraphicsServicesSPI.h" 43 44 #import "SystemMemory.h" 44 45 #import "WebCoreThread.h" … … 66 67 ReliefLogger log("Drain IOSurfacePool"); 67 68 IOSurfacePool::sharedPool().discardAllSurfaces(); 69 } 70 #endif 71 72 #if PLATFORM(IOS) 73 { 74 ReliefLogger log("Purging GraphicsServices font cache"); 75 GSFontPurgeFontCache(); 68 76 } 69 77 #endif -
trunk/Source/WebCore/platform/spi/ios/GraphicsServicesSPI.h
r191249 r196712 42 42 uint64_t GSCurrentEventTimestamp(void); 43 43 CFStringRef GSSystemRootDirectory(void); 44 void GSFontPurgeFontCache(void); 44 45 45 46 WTF_EXTERN_C_END
Note: See TracChangeset
for help on using the changeset viewer.