summaryrefslogtreecommitdiffstats
path: root/WebKit/android/WebCoreSupport/PlatformBridge.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebKit/android/WebCoreSupport/PlatformBridge.cpp')
-rw-r--r--WebKit/android/WebCoreSupport/PlatformBridge.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/WebKit/android/WebCoreSupport/PlatformBridge.cpp b/WebKit/android/WebCoreSupport/PlatformBridge.cpp
index cd5088b..89af00a 100644
--- a/WebKit/android/WebCoreSupport/PlatformBridge.cpp
+++ b/WebKit/android/WebCoreSupport/PlatformBridge.cpp
@@ -32,6 +32,7 @@
#include "FrameView.h"
#include "JavaSharedClient.h"
#include "KeyGeneratorClient.h"
+#include "MemoryUsage.h"
#include "PluginView.h"
#include "Settings.h"
#include "WebCookieJar.h"
@@ -189,6 +190,26 @@ void PlatformBridge::updateLayers(FrameView* frameView)
webViewCore->layersDraw();
}
+int PlatformBridge::lowMemoryUsageMB()
+{
+ return MemoryUsage::lowMemoryUsageMb();
+}
+
+int PlatformBridge::highMemoryUsageMB()
+{
+ return MemoryUsage::highMemoryUsageMb();
+}
+
+int PlatformBridge::memoryUsageMB()
+{
+ return MemoryUsage::memoryUsageMb(false);
+}
+
+int PlatformBridge::actualMemoryUsageMB()
+{
+ return MemoryUsage::memoryUsageMb(true);
+}
+
} // namespace WebCore