diff options
author | zmo@google.com <zmo@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-16 20:45:23 +0000 |
---|---|---|
committer | zmo@google.com <zmo@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-16 20:45:23 +0000 |
commit | 5929c32a2fc0429167f0c270c33568d56d9e91bb (patch) | |
tree | 8f1878afd8355d74899f7c850066b75dd36d9881 | |
parent | c8fd3d44eb99174c9fc27792d07ea64259fb2b6c (diff) | |
download | chromium_src-5929c32a2fc0429167f0c270c33568d56d9e91bb.zip chromium_src-5929c32a2fc0429167f0c270c33568d56d9e91bb.tar.gz chromium_src-5929c32a2fc0429167f0c270c33568d56d9e91bb.tar.bz2 |
Disable gpu process crash reporting when --ignore-gpu-blacklist is used.
BUG=92949
TEST=none
Review URL: http://codereview.chromium.org/7648041
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97014 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | content/browser/gpu/gpu_process_host.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/content/browser/gpu/gpu_process_host.cc b/content/browser/gpu/gpu_process_host.cc index 34e83ac..7ef613b 100644 --- a/content/browser/gpu/gpu_process_host.cc +++ b/content/browser/gpu/gpu_process_host.cc @@ -521,6 +521,7 @@ bool GpuProcessHost::LaunchGpuProcess() { // Propagate relevant command line switches. static const char* const kSwitchNames[] = { + switches::kDisableBreakpad, switches::kDisableGLMultisampling, switches::kDisableGpuSandbox, switches::kDisableGpuVsync, @@ -540,6 +541,12 @@ bool GpuProcessHost::LaunchGpuProcess() { cmd_line->CopySwitchesFrom(browser_command_line, kSwitchNames, arraysize(kSwitchNames)); + // If --ignore-gpu-blacklist is passed in, don't send in crash reports + // because GPU is expected to be unreliable. + if (browser_command_line.HasSwitch(switches::kIgnoreGpuBlacklist) && + !cmd_line->HasSwitch(switches::kDisableBreakpad)) + cmd_line->AppendSwitch(switches::kDisableBreakpad); + GpuFeatureFlags flags = GpuDataManager::GetInstance()->GetGpuFeatureFlags(); if (flags.flags() & GpuFeatureFlags::kGpuFeatureMultisampling) cmd_line->AppendSwitch(switches::kDisableGLMultisampling); |