From 41579aea1ddb436acb6491e4b79ea564d86b55a0 Mon Sep 17 00:00:00 2001 From: "apatrick@chromium.org" Date: Mon, 15 Nov 2010 22:31:26 +0000 Subject: 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 --- chrome/gpu/gpu_info_collector_linux.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'chrome/gpu/gpu_info_collector_linux.cc') 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; } -- cgit v1.1