Commit d50b8f5c authored by Takashi Sakamoto's avatar Takashi Sakamoto Committed by Commit Bot

Remove MemoryCoordinator from GpuProcessHost

Bug: 888904
Change-Id: I230b9f4370594029d9ae7ecf222e0b04074d7e35
Reviewed-on: https://chromium-review.googlesource.com/c/1285989Reviewed-by: default avatarAntoine Labour <piman@chromium.org>
Reviewed-by: default avatarKenneth Russell <kbr@chromium.org>
Commit-Queue: Takashi Sakamoto <tasak@google.com>
Cr-Commit-Position: refs/heads/master@{#601484}
parent 882b12e0
......@@ -43,11 +43,9 @@
#include "content/browser/gpu/gpu_main_thread_factory.h"
#include "content/browser/gpu/gpu_memory_buffer_manager_singleton.h"
#include "content/browser/gpu/shader_cache_factory.h"
#include "content/browser/memory/memory_coordinator_impl.h"
#include "content/browser/service_manager/service_manager_context.h"
#include "content/common/child_process_host_impl.h"
#include "content/common/in_process_child_thread_params.h"
#include "content/common/memory_coordinator.mojom.h"
#include "content/common/service_manager/child_connection.h"
#include "content/common/view_messages.h"
#include "content/public/browser/browser_task_traits.h"
......@@ -452,13 +450,6 @@ void BindDiscardableMemoryRequestOnUI(
BrowserMainLoop::GetInstance()->discardable_shared_memory_manager()));
}
void CreateMemoryCoordinatorHandleForGpuProcess(
int gpu_process_id,
mojom::MemoryCoordinatorHandleRequest request) {
MemoryCoordinatorImpl::GetInstance()->CreateHandle(gpu_process_id,
std::move(request));
}
} // anonymous namespace
class GpuProcessHost::ConnectionFilterImpl : public ConnectionFilter {
......@@ -473,11 +464,6 @@ class GpuProcessHost::ConnectionFilterImpl : public ConnectionFilter {
base::Bind(&BindJavaInterface<media::mojom::AndroidOverlayProvider>),
task_runner);
#endif
registry_.AddInterface(
base::BindRepeating(&CreateMemoryCoordinatorHandleForGpuProcess,
gpu_process_id),
task_runner);
}
private:
......
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