Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(855)

Unified Diff: third_party/WebKit/Source/web/WebMemoryPressureListener.cpp

Issue 1658923004: PurgeMemory. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/testing/Internals.idl ('k') | tools/perf/page_sets/blink_memory_mobile.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/WebMemoryPressureListener.cpp
diff --git a/third_party/WebKit/Source/web/WebMemoryPressureListener.cpp b/third_party/WebKit/Source/web/WebMemoryPressureListener.cpp
index e652306a3c8b344e6c2b6edab1964f1dd9524a09..3f26e91a2776c4f72be718c5f0148ba0087c6995 100644
--- a/third_party/WebKit/Source/web/WebMemoryPressureListener.cpp
+++ b/third_party/WebKit/Source/web/WebMemoryPressureListener.cpp
@@ -6,12 +6,14 @@
#include "core/page/Page.h"
#include "platform/MemoryPurgeController.h"
+#include "platform/fonts/FontCache.h"
namespace blink {
void WebMemoryPressureListener::onMemoryPressure(WebMemoryPressureLevel pressureLevel)
{
Page::onMemoryPressure();
+ FontCache::fontCache()->invalidate();
MemoryPurgeController::onMemoryPressure(pressureLevel);
}
« no previous file with comments | « third_party/WebKit/Source/core/testing/Internals.idl ('k') | tools/perf/page_sets/blink_memory_mobile.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698