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

Unified Diff: build/common.gypi

Issue 18910002: Set DISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY to true on Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address James's comments. Created 7 years, 5 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/renderer/render_process_visibility_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/common.gypi
diff --git a/build/common.gypi b/build/common.gypi
index 467dd745b539304700d33eded818579fdac94e9f..92e22ed26ab5d094d62e2f430843e5e517da50d4 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -418,6 +418,12 @@
# Managed users are enabled by default.
'enable_managed_users%': 1,
+ # Platform natively supports discardable memory.
+ 'native_discardable_memory%': 0,
+
+ # Platform sends memory pressure signals natively.
+ 'native_memory_pressure_signals%': 0,
+
'spdy_proxy_auth_origin%' : '',
'spdy_proxy_auth_property%' : '',
'spdy_proxy_auth_value%' : '',
@@ -513,6 +519,8 @@
'remoting%': 0,
'arm_neon%': 0,
'arm_neon_optional%': 1,
+ 'native_discardable_memory%': 1,
+ 'native_memory_pressure_signals%': 1,
}],
# Enable autofill dialog for Android and Views-enabled platforms for now.
@@ -831,6 +839,8 @@
'google_default_client_id%': '<(google_default_client_id)',
'google_default_client_secret%': '<(google_default_client_secret)',
'enable_managed_users%': '<(enable_managed_users)',
+ 'native_discardable_memory%': '<(native_discardable_memory)',
+ 'native_memory_pressure_signals%': '<(native_memory_pressure_signals)',
'spdy_proxy_auth_origin%': '<(spdy_proxy_auth_origin)',
'spdy_proxy_auth_property%': '<(spdy_proxy_auth_property)',
'spdy_proxy_auth_value%': '<(spdy_proxy_auth_value)',
@@ -3410,6 +3420,12 @@
'-B<(PRODUCT_DIR)/../../third_party/gold',
],
}],
+ ['native_discardable_memory', {
+ 'defines': ['DISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY'],
+ }],
+ ['native_memory_pressure_signals', {
+ 'defines': ['SYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE'],
+ }],
],
},
}],
« no previous file with comments | « no previous file | content/renderer/render_process_visibility_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698