summaryrefslogtreecommitdiffstats
path: root/chrome/test/gpu
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/test/gpu
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/test/gpu')
-rw-r--r--chrome/test/gpu/gpu_pixel_browsertest.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/test/gpu/gpu_pixel_browsertest.cc b/chrome/test/gpu/gpu_pixel_browsertest.cc
index 8fcd37e..221448f 100644
--- a/chrome/test/gpu/gpu_pixel_browsertest.cc
+++ b/chrome/test/gpu/gpu_pixel_browsertest.cc
@@ -116,9 +116,9 @@ bool CollectGPUInfo(GPUInfo* client_info) {
if (!gpu_host_shim)
return false;
GPUInfo info = gpu_host_shim->gpu_info();
- if (info.progress() == GPUInfo::kUninitialized) {
+ if (info.level() == GPUInfo::kUninitialized) {
GPUInfoCollectedObserver observer(gpu_host_shim);
- gpu_host_shim->CollectGraphicsInfoAsynchronously();
+ gpu_host_shim->CollectGraphicsInfoAsynchronously(GPUInfo::kPartial);
ui_test_utils::RunMessageLoop();
if (!observer.gpu_info_collected())
return false;