Changeset 210688 in webkit
- Timestamp:
- Jan 12, 2017 4:47:37 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r210685 r210688 1 2017-01-12 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 retaining CSS fonts after we stopped using them. 9 Call SPI to release them on memory pressure. This is one of multiple 10 steps necessary to actually free the fonts. 11 12 * Configurations/WebCore.xcconfig: 13 * page/cocoa/MemoryReleaseCocoa.mm: 14 (WebCore::platformReleaseMemory): 15 * platform/cocoa/MemoryPressureHandlerCocoa.mm: 16 * platform/spi/ios/GraphicsServicesSPI.h: 17 1 18 2017-01-12 Chris Dumez <cdumez@apple.com> 2 19 -
trunk/Source/WebCore/Configurations/WebCore.xcconfig
r209288 r210688 70 70 OTHER_LDFLAGS_BASE = -lsqlite3 -lobjc -lANGLE; 71 71 OTHER_LDFLAGS_BASE_ios = $(OTHER_LDFLAGS_BASE) -framework CFNetwork -framework CoreGraphics -framework CoreText -framework Foundation -framework ImageIO -framework MobileCoreServices -framework OpenGLES -lMobileGestalt $(WK_IOS_BINCOMPAT_LDFLAGS); 72 OTHER_LDFLAGS_PLATFORM[sdk=iphoneos*] = $(OTHER_LDFLAGS_BASE_ios) -framework IOSurface ;72 OTHER_LDFLAGS_PLATFORM[sdk=iphoneos*] = $(OTHER_LDFLAGS_BASE_ios) -framework IOSurface -framework GraphicsServices; 73 73 OTHER_LDFLAGS_PLATFORM[sdk=iphonesimulator*] = $(OTHER_LDFLAGS_BASE_ios); 74 74 OTHER_LDFLAGS_PLATFORM[sdk=macosx*] = $(OTHER_LDFLAGS_BASE) -sub_library libobjc -umbrella WebKit -allowable_client WebCoreTestSupport -allowable_client WebKit2 -allowable_client WebKitLegacy -framework ApplicationServices -framework AudioUnit -framework Carbon -framework Cocoa -framework CoreAudio -framework DataDetectorsCore -framework IOSurface -framework OpenGL -framework SystemConfiguration; -
trunk/Source/WebCore/page/cocoa/MemoryReleaseCocoa.mm
r209744 r210688 28 28 29 29 #import "GCController.h" 30 #import "GraphicsServicesSPI.h" 30 31 #import "IOSurfacePool.h" 31 32 #import "LayerPool.h" … … 38 39 void platformReleaseMemory(Critical) 39 40 { 41 #if PLATFORM(IOS) && !PLATFORM(IOS_SIMULATOR) 42 GSFontPurgeFontCache(); 43 #endif 44 40 45 _sqlite3_purgeEligiblePagerCacheMemory(); 41 46 -
trunk/Source/WebCore/platform/cocoa/MemoryPressureHandlerCocoa.mm
r209744 r210688 35 35 36 36 #if PLATFORM(IOS) 37 #import "GraphicsServicesSPI.h" 37 38 #import "SystemMemory.h" 38 39 #import "WebCoreThread.h" -
trunk/Source/WebCore/platform/spi/ios/GraphicsServicesSPI.h
r196737 r210688 42 42 uint64_t GSCurrentEventTimestamp(void); 43 43 CFStringRef GSSystemRootDirectory(void); 44 void GSFontPurgeFontCache(void); 44 45 45 46 WTF_EXTERN_C_END -
trunk/WebKitLibraries/ChangeLog
r210221 r210688 1 2017-01-12 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 * WebKitPrivateFrameworkStubs/iOS/10/GraphicsServices.framework/GraphicsServices.tbd: Add SPI. 9 1 10 2017-01-01 Jeff Miller <jeffm@apple.com> 2 11 -
trunk/WebKitLibraries/WebKitPrivateFrameworkStubs/iOS/10/GraphicsServices.framework/GraphicsServices.tbd
r204471 r210688 12 12 symbols: 13 13 - _GSCurrentEventTimestamp 14 - _GSFontPurgeFontCache 14 15 - _GSInitialize 15 16 - _GSSystemRootDirectory
Note: See TracChangeset
for help on using the changeset viewer.