diff options
author | jbauman@chromium.org <jbauman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-18 21:18:43 +0000 |
---|---|---|
committer | jbauman@chromium.org <jbauman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-18 21:18:43 +0000 |
commit | 26d045f95490022133a65fbc7ff1f0859011e422 (patch) | |
tree | faeefec96de4ddf78d242b6ab9a56b96f206901c /content/public/common | |
parent | a867ee4b2c977dd9cf0596bbbb42e9344c9ebd35 (diff) | |
download | chromium_src-26d045f95490022133a65fbc7ff1f0859011e422.zip chromium_src-26d045f95490022133a65fbc7ff1f0859011e422.tar.gz chromium_src-26d045f95490022133a65fbc7ff1f0859011e422.tar.bz2 |
Add flag to crash GPU process on hang.
Chromium developers should be able to try and use this flag to cause crash reports and see what's causing hangs.
BUG=
Review URL: https://chromiumcodereview.appspot.com/11191020
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162792 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/public/common')
-rw-r--r-- | content/public/common/content_switches.cc | 4 | ||||
-rw-r--r-- | content/public/common/content_switches.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/content/public/common/content_switches.cc b/content/public/common/content_switches.cc index 1ddae70..1c5b759 100644 --- a/content/public/common/content_switches.cc +++ b/content/public/common/content_switches.cc @@ -36,6 +36,10 @@ const char kBrowserSubprocessPath[] = "browser-subprocess-path"; // as a dependent process of the Chrome Frame plugin. const char kChromeFrame[] = "chrome-frame"; +// Cause a GPU hang to cause a crash dump, allowing for easier debugging of +// them. +const char kCrashOnGpuHang[] = "crash-on-gpu-hang"; + // Disables client-visible 3D APIs, in particular WebGL and Pepper 3D. // This is controlled by policy and is kept separate from the other // enable/disable switches to avoid accidentally regressing the policy diff --git a/content/public/common/content_switches.h b/content/public/common/content_switches.h index 891b20d..4de3819 100644 --- a/content/public/common/content_switches.h +++ b/content/public/common/content_switches.h @@ -22,6 +22,7 @@ CONTENT_EXPORT extern const char kBrowserCrashTest[]; CONTENT_EXPORT extern const char kBrowserSubprocessPath[]; // TODO(jam): this doesn't belong in content. CONTENT_EXPORT extern const char kChromeFrame[]; +CONTENT_EXPORT extern const char kCrashOnGpuHang[]; CONTENT_EXPORT extern const char kDisable3DAPIs[]; CONTENT_EXPORT extern const char kDisableAccelerated2dCanvas[]; CONTENT_EXPORT extern const char kDisableAcceleratedCompositing[]; |