Commit d328bba5 authored by Wez's avatar Wez Committed by Commit Bot

[fuchsia] Notify GPU process of changes in memory pressure.

Providing memory pressure information to the GPU process to allow it
to manage caches, etc more effectively.

Bug: 1020698
Change-Id: Ie92c5cb59cfff80a851a65867a8320ad2bcf8917
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2024853
Auto-Submit: Wez <wez@chromium.org>
Reviewed-by: default avatarSébastien Marchand <sebmarchand@chromium.org>
Reviewed-by: default avatarScott Violet <sky@chromium.org>
Commit-Queue: Wez <wez@chromium.org>
Cr-Commit-Position: refs/heads/master@{#736374}
parent 282196be
...@@ -155,8 +155,13 @@ int GetForgiveMinutes(gpu::GpuMode gpu_mode) { ...@@ -155,8 +155,13 @@ int GetForgiveMinutes(gpu::GpuMode gpu_mode) {
// Feature controlling whether or not memory pressure signals will be forwarded // Feature controlling whether or not memory pressure signals will be forwarded
// to the GPU process. // to the GPU process.
const base::Feature kForwardMemoryPressureEventsToGpuProcess{ const base::Feature kForwardMemoryPressureEventsToGpuProcess{
"ForwardMemoryPressureEventsToGpuProcess", "ForwardMemoryPressureEventsToGpuProcess",
base::FEATURE_DISABLED_BY_DEFAULT}; #if defined(OS_FUCHSIA)
base::FEATURE_ENABLED_BY_DEFAULT
#else
base::FEATURE_DISABLED_BY_DEFAULT
#endif
};
#endif #endif
// This matches base::TerminationStatus. // This matches base::TerminationStatus.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment