summaryrefslogtreecommitdiffstats
path: root/chrome/gpu/gpu_info_collector_linux.cc
diff options
context:
space:
mode:
authorapatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-15 22:31:26 +0000
committerapatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-15 22:31:26 +0000
commit41579aea1ddb436acb6491e4b79ea564d86b55a0 (patch)
tree42829d8ed9773096be51647be7f73e32b7ba0247 /chrome/gpu/gpu_info_collector_linux.cc
parentb7ba5b5e11aaa87de7601daf1ab5443fe41a6f3c (diff)
downloadchromium_src-41579aea1ddb436acb6491e4b79ea564d86b55a0.zip
chromium_src-41579aea1ddb436acb6491e4b79ea564d86b55a0.tar.gz
chromium_src-41579aea1ddb436acb6491e4b79ea564d86b55a0.tar.bz2
Collect DirectX diagnostic information asynchronously.
Collecting this can take a couple of seconds. I put the code onto a worker thread. The about:gpuinfo handler polls for it until it is available, initially displaying only the subset of informtation that can be retreived quickly. This makes the startup time for accelerated compositing, WebGL, etc significantly lower on Windows. None of the other platforms have this issue. TEST=go to about:gpuinfo, try BUG=59711 Review URL: http://codereview.chromium.org/4860001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66184 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/gpu/gpu_info_collector_linux.cc')
-rw-r--r--chrome/gpu/gpu_info_collector_linux.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/gpu/gpu_info_collector_linux.cc b/chrome/gpu/gpu_info_collector_linux.cc
index 2a4db9a..fd48c83 100644
--- a/chrome/gpu/gpu_info_collector_linux.cc
+++ b/chrome/gpu/gpu_info_collector_linux.cc
@@ -12,6 +12,9 @@ bool CollectGraphicsInfo(GPUInfo* gpu_info) {
// on this platform in the future.
// bool can_lose_context =
// gfx::GetGLImplementation() == gfx::kGLImplementationEGLGLES2;
+
+ gpu_info->SetProgress(GPUInfo::kComplete);
+
return true;
}