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

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

Issue 1249313004: Remove GPU relinquish resources infrastructure and stop GPU process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Stop GPU process functionality Created 5 years, 5 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.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

Powered by Google App Engine
This is Rietveld 408576698