Index: third_party/WebKit/Source/platform/fonts/FontPlatformData.cpp |
diff --git a/third_party/WebKit/Source/platform/fonts/FontPlatformData.cpp b/third_party/WebKit/Source/platform/fonts/FontPlatformData.cpp |
index e6f42cb4a1f9505f00dca43dee4d939932aa7e01..b2014bda4d0931439517c70062440b3eba60489c 100644 |
--- a/third_party/WebKit/Source/platform/fonts/FontPlatformData.cpp |
+++ b/third_party/WebKit/Source/platform/fonts/FontPlatformData.cpp |
@@ -346,4 +346,10 @@ PassRefPtr<SharedBuffer> FontPlatformData::openTypeTable(SkFontTableTag tag) con |
return buffer.release(); |
} |
+void FontPlatformData::purgeMemory() |
+{ |
+ m_typeface = nullptr; |
drott
2016/07/25 12:28:07
I don't think this is safe at the moment.
|
+ m_harfBuzzFace = nullptr; |
+} |
+ |
} // namespace blink |