| Index: content/renderer/render_thread_impl.cc
|
| diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
|
| index fb9f65cf601db918aeaa5481c2e1fa370351c6d3..216091542e1cb8d5b4112c92b4f48739118e4254 100644
|
| --- a/content/renderer/render_thread_impl.cc
|
| +++ b/content/renderer/render_thread_impl.cc
|
| @@ -46,6 +46,7 @@
|
| #include "cc/raster/task_graph_runner.h"
|
| #include "cc/trees/layer_tree_host_common.h"
|
| #include "cc/trees/layer_tree_settings.h"
|
| +#include "components/memory_coordinator/child/child_memory_coordinator_impl.h"
|
| #include "components/scheduler/child/compositor_worker_scheduler.h"
|
| #include "components/scheduler/child/webthread_base.h"
|
| #include "components/scheduler/child/webthread_impl_for_worker_scheduler.h"
|
| @@ -836,6 +837,17 @@ void RenderThreadImpl::Init(
|
| base::Bind(&RenderThreadImpl::OnSyncMemoryPressure,
|
| base::Unretained(this))));
|
|
|
| + if (memory_coordinator::IsEnabled()) {
|
| + // TODO(bashi): Revisit how to manage the lifetime of
|
| + // ChildMemoryCoordinatorImpl.
|
| + // https://codereview.chromium.org/2094583002/#msg52
|
| + memory_coordinator::mojom::MemoryCoordinatorHandlePtr parent_coordinator;
|
| + GetRemoteInterfaces()->GetInterface(mojo::GetProxy(&parent_coordinator));
|
| + memory_coordinator_.reset(
|
| + new memory_coordinator::ChildMemoryCoordinatorImpl(
|
| + std::move(parent_coordinator)));
|
| + }
|
| +
|
| int num_raster_threads = 0;
|
| std::string string_value =
|
| command_line.GetSwitchValueASCII(switches::kNumRasterThreads);
|
|
|