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

Unified Diff: content/browser/gpu/gpu_process_host_ui_shim.cc

Issue 2723363002: gpu: Replace GpuMsg_Finalize ipc with equivalent mojom api (Closed)
Patch Set: . Created 3 years, 9 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
Index: content/browser/gpu/gpu_process_host_ui_shim.cc
diff --git a/content/browser/gpu/gpu_process_host_ui_shim.cc b/content/browser/gpu/gpu_process_host_ui_shim.cc
index ceab9a2d57ab400bc90acbb83fbfd3fb88c58ad4..499d789a1426fc896acf2e08bc1d8510a75f95ba 100644
--- a/content/browser/gpu/gpu_process_host_ui_shim.cc
+++ b/content/browser/gpu/gpu_process_host_ui_shim.cc
@@ -43,12 +43,6 @@ namespace {
base::LazyInstance<IDMap<GpuProcessHostUIShim*>>::DestructorAtExit
g_hosts_by_id = LAZY_INSTANCE_INITIALIZER;
-void StopGpuProcessOnIO(int host_id) {
- GpuProcessHost* host = GpuProcessHost::FromID(host_id);
- if (host)
- host->StopGpuProcess();
-}
-
} // namespace
void RouteToGpuProcessHostUIShimTask(int host_id, const IPC::Message& msg) {
@@ -121,17 +115,8 @@ bool GpuProcessHostUIShim::OnMessageReceived(const IPC::Message& message) {
return OnControlMessageReceived(message);
}
-void GpuProcessHostUIShim::StopGpuProcess(const base::Closure& callback) {
- close_callback_ = callback;
-
- BrowserThread::PostTask(
- BrowserThread::IO, FROM_HERE, base::Bind(&StopGpuProcessOnIO, host_id_));
-}
-
GpuProcessHostUIShim::~GpuProcessHostUIShim() {
DCHECK(CalledOnValidThread());
- if (!close_callback_.is_null())
- base::ResetAndReturn(&close_callback_).Run();
g_hosts_by_id.Pointer()->Remove(host_id_);
}
« no previous file with comments | « content/browser/gpu/gpu_process_host_ui_shim.h ('k') | content/browser/renderer_host/render_widget_host_view_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698