summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gpu_process_host_ui_shim.cc
diff options
context:
space:
mode:
authorapatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-26 22:26:22 +0000
committerapatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-26 22:26:22 +0000
commit64cd59ca5e1113b67a4728acf9d35cdcf009f7a2 (patch)
treed6845a3436b6ddca476a685384cbb05e867264a8 /chrome/browser/gpu_process_host_ui_shim.cc
parentdf429d6dc603484c88369f6bb1d149c916c191e6 (diff)
downloadchromium_src-64cd59ca5e1113b67a4728acf9d35cdcf009f7a2.zip
chromium_src-64cd59ca5e1113b67a4728acf9d35cdcf009f7a2.tar.gz
chromium_src-64cd59ca5e1113b67a4728acf9d35cdcf009f7a2.tar.bz2
Defered collect DirectX diagnostics until they are needed for about:gpu.
This is because collecting the stats often crashes. Added a guard to prevent the collection of diagnostics on multiple threads simultaneously. Renamed GPUInfo::Progress to GPUInfo::Level. TEST=try, about:gpu does not cause concurrent diagnostics collection BUG=none Review URL: http://codereview.chromium.org/6364013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72704 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gpu_process_host_ui_shim.cc')
-rw-r--r--chrome/browser/gpu_process_host_ui_shim.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/gpu_process_host_ui_shim.cc b/chrome/browser/gpu_process_host_ui_shim.cc
index 5419a44..9ae2fcd 100644
--- a/chrome/browser/gpu_process_host_ui_shim.cc
+++ b/chrome/browser/gpu_process_host_ui_shim.cc
@@ -82,12 +82,13 @@ bool GpuProcessHostUIShim::OnMessageReceived(const IPC::Message& message) {
return router_.RouteMessage(message);
}
-void GpuProcessHostUIShim::CollectGraphicsInfoAsynchronously() {
+void GpuProcessHostUIShim::CollectGraphicsInfoAsynchronously(
+ GPUInfo::Level level) {
DCHECK(CalledOnValidThread());
BrowserThread::PostTask(
BrowserThread::IO,
FROM_HERE,
- new SendOnIOThreadTask(new GpuMsg_CollectGraphicsInfo()));
+ new SendOnIOThreadTask(new GpuMsg_CollectGraphicsInfo(level)));
}
void GpuProcessHostUIShim::SendAboutGpuCrash() {