[iOS] Purge GraphicsServices font cache on memory warning.
authorakling@apple.com <akling@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 17 Feb 2016 20:27:56 +0000 (20:27 +0000)
committerakling@apple.com <akling@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 17 Feb 2016 20:27:56 +0000 (20:27 +0000)
commit28a5090e4b22f305803ecacbbcb334e82b3f6acd
treed5823e45bf0a88833d35afe5aef18bcfaa9238a7
parent224d428630e862c2bc2f3a0fe10e9ef91e46f0d3
[iOS] Purge GraphicsServices font cache on memory warning.
<https://webkit.org/b/154343>

Reviewed by Antti Koivisto.

The GS font cache was holding on to the last retain on CSS fonts after they stop being used.
Call SPI to purge it on memory pressure.

* platform/cocoa/MemoryPressureHandlerCocoa.mm:
(WebCore::MemoryPressureHandler::platformReleaseMemory):
* platform/spi/ios/GraphicsServicesSPI.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@196712 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/platform/cocoa/MemoryPressureHandlerCocoa.mm
Source/WebCore/platform/spi/ios/GraphicsServicesSPI.h