| 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_);
|
| }
|
|
|
|
|