diff options
author | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-26 08:39:01 +0000 |
---|---|---|
committer | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-26 08:39:01 +0000 |
commit | 664b07ad183dd7e284e1eb58c0d6c503aa668bfd (patch) | |
tree | c0b8cab8661c28e697699b46c7272aa0a980fc23 /webkit | |
parent | 5b826c25f6a69dcb8bca0d7ba2aab42915f97ee4 (diff) | |
download | chromium_src-664b07ad183dd7e284e1eb58c0d6c503aa668bfd.zip chromium_src-664b07ad183dd7e284e1eb58c0d6c503aa668bfd.tar.gz chromium_src-664b07ad183dd7e284e1eb58c0d6c503aa668bfd.tar.bz2 |
Remove obsolete low-memory related methods from platform implemenation.
BUG=260596
R=jamesr@chromium.org
Review URL: https://codereview.chromium.org/20142006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213803 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r-- | webkit/child/webkitplatformsupport_impl.cc | 24 | ||||
-rw-r--r-- | webkit/child/webkitplatformsupport_impl.h | 6 |
2 files changed, 0 insertions, 30 deletions
diff --git a/webkit/child/webkitplatformsupport_impl.cc b/webkit/child/webkitplatformsupport_impl.cc index e33938e..364429d 100644 --- a/webkit/child/webkitplatformsupport_impl.cc +++ b/webkit/child/webkitplatformsupport_impl.cc @@ -24,7 +24,6 @@ #include "base/strings/string_util.h" #include "base/strings/utf_string_conversions.h" #include "base/synchronization/lock.h" -#include "base/sys_info.h" #include "base/time/time.h" #include "content/public/common/webplugininfo.h" #include "grit/webkit_chromium_resources.h" @@ -821,29 +820,6 @@ size_t WebKitPlatformSupportImpl::actualMemoryUsageMB() { return getMemoryUsageMB(true); } -#if defined(OS_ANDROID) -size_t WebKitPlatformSupportImpl::lowMemoryUsageMB() { - // If memory usage is below this threshold, do not bother forcing GC. - // Allow us to use up to our memory class value before V8's GC kicks in. - // These values have been determined by experimentation. - return base::SysInfo::DalvikHeapSizeMB() / 2; -} - -size_t WebKitPlatformSupportImpl::highMemoryUsageMB() { - // If memory usage is above this threshold, force GC more aggressively. - return base::SysInfo::DalvikHeapSizeMB() * 3 / 4; -} - -size_t WebKitPlatformSupportImpl::highUsageDeltaMB() { - // If memory usage is above highMemoryUsageMB() and memory usage increased by - // more than highUsageDeltaMB() since the last GC, then force GC. - // Note that this limit should be greater than the amount of memory for V8 - // internal data structures that are released on GC and reallocated during JS - // execution (about 8MB). Otherwise, it will cause too aggressive GCs. - return base::SysInfo::DalvikHeapSizeMB() / 8; -} -#endif - void WebKitPlatformSupportImpl::startHeapProfiling( const WebKit::WebString& prefix) { // FIXME(morrita): Make this built on windows. diff --git a/webkit/child/webkitplatformsupport_impl.h b/webkit/child/webkitplatformsupport_impl.h index e9077582..b9ed7e8 100644 --- a/webkit/child/webkitplatformsupport_impl.h +++ b/webkit/child/webkitplatformsupport_impl.h @@ -49,12 +49,6 @@ class WEBKIT_CHILD_EXPORT WebKitPlatformSupportImpl : const WebKit::WebURL& url); virtual size_t memoryUsageMB(); virtual size_t actualMemoryUsageMB(); -#if defined(OS_ANDROID) // Other OSes just use the default values. - // TODO(jochen): Remove these. - virtual size_t lowMemoryUsageMB(); - virtual size_t highMemoryUsageMB(); - virtual size_t highUsageDeltaMB(); -#endif virtual void startHeapProfiling(const WebKit::WebString& prefix); virtual void stopHeapProfiling() OVERRIDE; |