Commit 07e02d4f authored by zmo@google.com's avatar zmo@google.com

Move preliminary gpu info collection back to UI thread.

Missed adding this file's change to the CL.

BUG=97535
TEST=
TBR=kbr
Review URL: http://codereview.chromium.org/8680039

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111458 0039d316-1c4b-4281-b951-d872f2087c98
parent 537fbe0a
...@@ -205,12 +205,7 @@ void GpuDataManager::Initialize() { ...@@ -205,12 +205,7 @@ void GpuDataManager::Initialize() {
// User flags need to be collected before any further initialization. // User flags need to be collected before any further initialization.
user_flags_.Initialize(); user_flags_.Initialize();
// Certain tests doesn't go through the browser startup path that if (!user_flags_.skip_gpu_data_loading()) {
// initializes GpuDataManager on FILE thread; therefore, it is initialized
// on UI thread later, and we skip the preliminary gpu info collection
// in such situation.
if (!user_flags_.skip_gpu_data_loading() &&
BrowserThread::CurrentlyOn(BrowserThread::FILE)) {
content::GPUInfo gpu_info; content::GPUInfo gpu_info;
gpu_info_collector::CollectPreliminaryGraphicsInfo(&gpu_info); gpu_info_collector::CollectPreliminaryGraphicsInfo(&gpu_info);
UpdateGpuInfo(gpu_info); UpdateGpuInfo(gpu_info);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment