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

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: Remove expecting_shutdown_. 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..598fd5a9c5478b9bba3c57e9348a3ebc8590d131 100644
--- a/content/browser/gpu/gpu_process_host_ui_shim.h
+++ b/content/browser/gpu/gpu_process_host_ui_shim.h
@@ -65,6 +65,9 @@ class GpuProcessHostUIShim : public IPC::Listener,
// Return NULL if none has been created.
CONTENT_EXPORT static GpuProcessHostUIShim* GetOneInstance();
+ // Stops the GPU process.
+ void StopGpuProcess(const base::Closure& callback);
+
// IPC::Sender implementation.
bool Send(IPC::Message* msg) override;
@@ -74,7 +77,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 +100,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