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

Unified Diff: content/child/child_discardable_shared_memory_manager.cc

Issue 1013533002: content: Use at most 128MB of discardable memory on Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: include low-end device tuning Created 5 years, 7 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 | « no previous file | content/common/host_discardable_shared_memory_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/child_discardable_shared_memory_manager.cc
diff --git a/content/child/child_discardable_shared_memory_manager.cc b/content/child/child_discardable_shared_memory_manager.cc
index 6c67be86edb8bd714a19fc575b437a79ce744eb3..7c0f4d6201dcc7cb64e52602d53ae9a67124f054 100644
--- a/content/child/child_discardable_shared_memory_manager.cc
+++ b/content/child/child_discardable_shared_memory_manager.cc
@@ -22,12 +22,7 @@ namespace content {
namespace {
// Default allocation size.
-#if defined(OS_ANDROID)
-// Larger allocation size on Android to avoid reaching the FD-limit.
-const size_t kAllocationSize = 32 * 1024 * 1024;
-#else
const size_t kAllocationSize = 4 * 1024 * 1024;
-#endif
// Global atomic to generate unique discardable shared memory IDs.
base::StaticAtomicSequenceNumber g_next_discardable_shared_memory_id;
« no previous file with comments | « no previous file | content/common/host_discardable_shared_memory_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698