summaryrefslogtreecommitdiffstats
path: root/chrome/test/gpu
diff options
context:
space:
mode:
authorapatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-27 00:19:37 +0000
committerapatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-27 00:19:37 +0000
commitf3f79b10e5f2231e2133c00e2f901029234ff7c2 (patch)
tree7baf1575a544aede45c2d9b4ca4c49a77ecbb65c /chrome/test/gpu
parent09433b23b0126c80c78aad19eda8c59216026842 (diff)
downloadchromium_src-f3f79b10e5f2231e2133c00e2f901029234ff7c2.zip
chromium_src-f3f79b10e5f2231e2133c00e2f901029234ff7c2.tar.gz
chromium_src-f3f79b10e5f2231e2133c00e2f901029234ff7c2.tar.bz2
Reland 72704 - 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 Review URL: http://codereview.chromium.org/6341011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72731 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;