diff options
author | lliabraa@chromium.org <lliabraa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-11 22:18:41 +0000 |
---|---|---|
committer | lliabraa@chromium.org <lliabraa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-11 22:18:41 +0000 |
commit | 9317c24980c39f7134a7a9dbe4ea0cea6ffc9ade (patch) | |
tree | 8c428adf29f44eb551a50b01a14550bfe66f8cb7 /base | |
parent | 7f233d0a0b73bd91071460e7517f6293abffafb7 (diff) | |
download | chromium_src-9317c24980c39f7134a7a9dbe4ea0cea6ffc9ade.zip chromium_src-9317c24980c39f7134a7a9dbe4ea0cea6ffc9ade.tar.gz chromium_src-9317c24980c39f7134a7a9dbe4ea0cea6ffc9ade.tar.bz2 |
Change "high RAM" level for iOS devices from 250 MB to 500MB.
All supported devices have at least 256MB so this change aims to keep the method relevant.
BUG=327736
Review URL: https://codereview.chromium.org/99473011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@240194 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r-- | base/ios/device_util.h | 2 | ||||
-rw-r--r-- | base/ios/device_util.mm | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/base/ios/device_util.h b/base/ios/device_util.h index fe4833d..a4fa488 100644 --- a/base/ios/device_util.h +++ b/base/ios/device_util.h @@ -40,7 +40,7 @@ namespace device_util { // x86_64 -> Simulator std::string GetPlatform(); -// Returns true if the application is running on a high-ram device. (>=250M). +// Returns true if the application is running on a high-ram device. (>=500M). bool IsRunningOnHighRamDevice(); // Returns true if the device has only one core. diff --git a/base/ios/device_util.mm b/base/ios/device_util.mm index 9600833..0d516f9 100644 --- a/base/ios/device_util.mm +++ b/base/ios/device_util.mm @@ -72,8 +72,8 @@ bool IsRunningOnHighRamDevice() { uint64_t memory_size = 0; size_t size = sizeof(memory_size); if (sysctlbyname("hw.memsize", &memory_size, &size, NULL, 0) == 0) { - // Anything >= 250M, call high ram. - return memory_size >= 250 * 1024 * 1024; + // Anything >= 500M, call high ram. + return memory_size >= 500 * 1024 * 1024; } return false; } |