diff options
author | zmo@google.com <zmo@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-23 19:48:06 +0000 |
---|---|---|
committer | zmo@google.com <zmo@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-23 19:48:06 +0000 |
commit | 29ad10c9c8e43ddab0a8a14ea04a550e8ddfad01 (patch) | |
tree | b1ca989813f56066199f92f64f19ff24a519eb61 /content/gpu | |
parent | e209a688e0de70c127ee1489e25480c3c8b676e3 (diff) | |
download | chromium_src-29ad10c9c8e43ddab0a8a14ea04a550e8ddfad01.zip chromium_src-29ad10c9c8e43ddab0a8a14ea04a550e8ddfad01.tar.gz chromium_src-29ad10c9c8e43ddab0a8a14ea04a550e8ddfad01.tar.bz2 |
Move GPU preliminary info collection back to UI thread.
Apparently doing it on FILE thread causes a race, which causes crbug 83153.
In order to move back to UI thread, we have to drop chrome channel support in GPU blacklist (it's a FILE operation); also, we have to move the collection of ATI driver version in linux to GPU process.
Note that this is the minimum change required for the move. Further cleanup will follow once this is merged safely back to M16.
BUG=97535
TEST=unittest
Review URL: http://codereview.chromium.org/8670004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111390 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/gpu')
-rw-r--r-- | content/gpu/gpu_info_collector_linux.cc | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/content/gpu/gpu_info_collector_linux.cc b/content/gpu/gpu_info_collector_linux.cc index c2abad8..ade4f33 100644 --- a/content/gpu/gpu_info_collector_linux.cc +++ b/content/gpu/gpu_info_collector_linux.cc @@ -182,15 +182,7 @@ bool CollectGraphicsInfo(content::GPUInfo* gpu_info) { } gpu_info->finalized = true; - return CollectGraphicsInfoGL(gpu_info); -} - -bool CollectPreliminaryGraphicsInfo(content::GPUInfo* gpu_info) { - DCHECK(gpu_info); - - bool rt = true; - if (!CollectVideoCardInfo(gpu_info)) - rt = false; + bool rt = CollectGraphicsInfoGL(gpu_info); if (gpu_info->vendor_id == 0x1002) { // ATI std::string ati_driver_version = CollectDriverVersionATI(); @@ -203,6 +195,12 @@ bool CollectPreliminaryGraphicsInfo(content::GPUInfo* gpu_info) { return rt; } +bool CollectPreliminaryGraphicsInfo(content::GPUInfo* gpu_info) { + DCHECK(gpu_info); + + return CollectVideoCardInfo(gpu_info); +} + bool CollectVideoCardInfo(content::GPUInfo* gpu_info) { DCHECK(gpu_info); |