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

Unified Diff: content/browser/gpu/gpu_process_host.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 gpu_crash_recorded_. 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
« no previous file with comments | « content/browser/browser_child_process_host_impl.cc ('k') | content/browser/gpu/gpu_process_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/gpu/gpu_process_host.h
diff --git a/content/browser/gpu/gpu_process_host.h b/content/browser/gpu/gpu_process_host.h
index 7df522a80b6c87619432e93ae66af269643e03a4..720761739c07f0d7c9cdfd6084f99e9724191d46 100644
--- a/content/browser/gpu/gpu_process_host.h
+++ b/content/browser/gpu/gpu_process_host.h
@@ -141,8 +141,12 @@ class GpuProcessHost : public BrowserChildProcessHostDelegate,
// What kind of GPU process, e.g. sandboxed or unsandboxed.
GpuProcessKind kind();
+ // Forcefully terminates the GPU process.
void ForceShutdown();
+ // Asks the GPU process to stop by itself.
+ void StopGpuProcess();
+
void BeginFrameSubscription(
int surface_id,
base::WeakPtr<RenderWidgetHostViewFrameSubscriber> subscriber);
@@ -164,6 +168,7 @@ class GpuProcessHost : public BrowserChildProcessHostDelegate,
bool OnMessageReceived(const IPC::Message& message) override;
void OnChannelConnected(int32 peer_pid) override;
void OnProcessLaunched() override;
+ void OnProcessLaunchFailed() override;
void OnProcessCrashed(int exit_code) override;
// Message handlers.
@@ -238,9 +243,6 @@ class GpuProcessHost : public BrowserChildProcessHostDelegate,
// Time Init started. Used to log total GPU process startup time to UMA.
base::TimeTicks init_start_time_;
- // Whether this host recorded a GPU crash or not.
- bool gpu_crash_recorded_;
-
// Master switch for enabling/disabling GPU acceleration for the current
// browser session. It does not change the acceleration settings for
// existing tabs, just the future ones.
« no previous file with comments | « content/browser/browser_child_process_host_impl.cc ('k') | content/browser/gpu/gpu_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698