Index: third_party/WebKit/Source/core/testing/Internals.cpp |
diff --git a/third_party/WebKit/Source/core/testing/Internals.cpp b/third_party/WebKit/Source/core/testing/Internals.cpp |
index 624aaa7089913c0809d2db48a6e810cdee41db17..b544e4a767ea02bd6ac3a1e0f48373f930901ebc 100644 |
--- a/third_party/WebKit/Source/core/testing/Internals.cpp |
+++ b/third_party/WebKit/Source/core/testing/Internals.cpp |
@@ -128,6 +128,7 @@ |
#include "core/workers/WorkerThread.h" |
#include "platform/Cursor.h" |
#include "platform/Language.h" |
+#include "platform/MemoryPurgeController.h" |
#include "platform/PlatformKeyboardEvent.h" |
#include "platform/RuntimeEnabledFeatures.h" |
#include "platform/TraceEvent.h" |
@@ -141,6 +142,7 @@ |
#include "public/platform/WebGraphicsContext3D.h" |
#include "public/platform/WebGraphicsContext3DProvider.h" |
#include "public/platform/WebLayer.h" |
+#include "public/platform/WebMemoryPressureLevel.h" |
#include "wtf/InstanceCounter.h" |
#include "wtf/PassOwnPtr.h" |
#include "wtf/dtoa.h" |
@@ -2566,4 +2568,10 @@ int Internals::getScrollAnimationState(Node* node) const |
return -1; |
} |
+void Internals::purgeMemory() |
+{ |
+ Page::onMemoryPressure(); |
+ MemoryPurgeController::onMemoryPressure(WebMemoryPressureLevelCritical); |
+} |
+ |
} // namespace blink |