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

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

Issue 2267843002: gpu host: Delete GpuMsg_Finalize (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 | « content/browser/gpu/gpu_process_host_ui_shim.h ('k') | content/common/gpu_host_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 96a00c751f9f7fe53b7c3b7042feed3c4dc29b2e..359e535e2e3fbb44a3cc0d4b29017d60cdc03c39 100644
--- a/content/browser/gpu/gpu_process_host_ui_shim.cc
+++ b/content/browser/gpu/gpu_process_host_ui_shim.cc
@@ -51,12 +51,6 @@ void SendOnIOThreadTask(int host_id, IPC::Message* msg) {
delete msg;
}
-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) {
@@ -149,13 +143,6 @@ 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_));
-}
-
void GpuProcessHostUIShim::SimulateRemoveAllContext() {
Send(new GpuMsg_Clean());
}
@@ -170,8 +157,6 @@ void GpuProcessHostUIShim::SimulateHang() {
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/common/gpu_host_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698