diff options
author | apatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-21 01:30:15 +0000 |
---|---|---|
committer | apatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-21 01:30:15 +0000 |
commit | 9cead38fa1839a32111550f0919b101678dcaa35 (patch) | |
tree | e26e9760a5834ae2d1a222984783d2a6a8f3d417 /content | |
parent | e383a5623447ee16f28d5240a6013bb685adfe7d (diff) | |
download | chromium_src-9cead38fa1839a32111550f0919b101678dcaa35.zip chromium_src-9cead38fa1839a32111550f0919b101678dcaa35.tar.gz chromium_src-9cead38fa1839a32111550f0919b101678dcaa35.tar.bz2 |
win: Make GPU process crash on exit once it has successfully initialized.
This is to find out if the GPU process exits after initialization for any other reason.
Review URL: https://chromiumcodereview.appspot.com/10864002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152469 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content')
-rw-r--r-- | content/gpu/gpu_child_thread.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/content/gpu/gpu_child_thread.cc b/content/gpu/gpu_child_thread.cc index 9302ab9c..de07f46 100644 --- a/content/gpu/gpu_child_thread.cc +++ b/content/gpu/gpu_child_thread.cc @@ -21,6 +21,10 @@ #include "ipc/ipc_sync_message_filter.h" #include "ui/gl/gl_implementation.h" +#if defined(OS_WIN) +#include "base/win/win_util.h" +#endif + const int kGpuTimeout = 10000; namespace { @@ -120,6 +124,12 @@ void GpuChildThread::OnInitialize() { return; } +#if defined(OS_WIN) + // This is to find out if the GPU process ever exits normally. + // TODO(apatrick): Delete me. + base::win::SetShouldCrashOnProcessDetach(true); +#endif + // We don't need to pipe log messages if we are running the GPU thread in // the browser process. if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kSingleProcess) && |