Chromium Code Reviews| Index: content/browser/gpu/gpu_process_host_ui_shim.h |
| diff --git a/content/browser/gpu/gpu_process_host_ui_shim.h b/content/browser/gpu/gpu_process_host_ui_shim.h |
| index 366ff678e6038537d5a7456141edd05a9b18940d..8cc9bafc0357c07893a426081df0d72c1e0e35c9 100644 |
| --- a/content/browser/gpu/gpu_process_host_ui_shim.h |
| +++ b/content/browser/gpu/gpu_process_host_ui_shim.h |
| @@ -65,6 +65,10 @@ class GpuProcessHostUIShim : public IPC::Listener, |
| // Return NULL if none has been created. |
| CONTENT_EXPORT static GpuProcessHostUIShim* GetOneInstance(); |
| + // Stops the GPU process. |
| + // TODO(derekjchow): Make this API prettier. |
|
halliwell
2015/07/25 17:00:38
I don't understand the TODO, can you elaborate?
derekjchow1
2015/07/28 16:14:57
Done.
|
| + void StopGpuProcess(base::Closure callback); |
| + |
| // IPC::Sender implementation. |
| bool Send(IPC::Message* msg) override; |
| @@ -74,7 +78,6 @@ class GpuProcessHostUIShim : public IPC::Listener, |
| // actually received on the IO thread. |
| bool OnMessageReceived(const IPC::Message& message) override; |
| - CONTENT_EXPORT void RelinquishGpuResources(const base::Closure& callback); |
| CONTENT_EXPORT void SimulateRemoveAllContext(); |
| CONTENT_EXPORT void SimulateCrash(); |
| CONTENT_EXPORT void SimulateHang(); |
| @@ -98,13 +101,12 @@ class GpuProcessHostUIShim : public IPC::Listener, |
| #endif |
| void OnVideoMemoryUsageStatsReceived( |
| const GPUVideoMemoryUsageStats& video_memory_usage_stats); |
| - void OnResourcesRelinquished(); |
| void OnAddSubscription(int32 process_id, unsigned int target); |
| void OnRemoveSubscription(int32 process_id, unsigned int target); |
| // The serial number of the GpuProcessHost / GpuProcessHostUIShim pair. |
| int host_id_; |
| - base::Closure relinquish_callback_; |
| + base::Closure close_callback_; |
| }; |
| } // namespace content |