Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(220)

Side by Side Diff: content/gpu/gpu_info_collector_win.cc

Issue 14335017: content: Use base::MessageLoop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/gpu/gpu_child_thread.cc ('k') | content/gpu/gpu_main.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/gpu/gpu_info_collector.h" 5 #include "content/gpu/gpu_info_collector.h"
6 6
7 // This has to be included before windows.h. 7 // This has to be included before windows.h.
8 #include "third_party/re2/re2/re2.h" 8 #include "third_party/re2/re2/re2.h"
9 9
10 #include <windows.h> 10 #include <windows.h>
(...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after
597 base::HexStringToInt(WideToASCII(device_id_string), &device_id); 597 base::HexStringToInt(WideToASCII(device_id_string), &device_id);
598 gpu_info->gpu.vendor_id = vendor_id; 598 gpu_info->gpu.vendor_id = vendor_id;
599 gpu_info->gpu.device_id = device_id; 599 gpu_info->gpu.device_id = device_id;
600 // TODO(zmo): we only need to call CollectDriverInfoD3D() if we use ANGLE. 600 // TODO(zmo): we only need to call CollectDriverInfoD3D() if we use ANGLE.
601 if (!CollectDriverInfoD3D(id, gpu_info)) 601 if (!CollectDriverInfoD3D(id, gpu_info))
602 return false; 602 return false;
603 603
604 // Collect basic information about supported D3D11 features. Delay for 45 604 // Collect basic information about supported D3D11 features. Delay for 45
605 // seconds so as not to regress performance tests. 605 // seconds so as not to regress performance tests.
606 if (D3D11ShouldWork(*gpu_info)) { 606 if (D3D11ShouldWork(*gpu_info)) {
607 MessageLoop::current()->PostDelayedTask( 607 base::MessageLoop::current()->PostDelayedTask(
608 FROM_HERE, 608 FROM_HERE,
609 base::Bind(&CollectD3D11Support), 609 base::Bind(&CollectD3D11Support),
610 base::TimeDelta::FromSeconds(45)); 610 base::TimeDelta::FromSeconds(45));
611 } 611 }
612 612
613 return true; 613 return true;
614 } 614 }
615 615
616 bool CollectDriverInfoGL(content::GPUInfo* gpu_info) { 616 bool CollectDriverInfoGL(content::GPUInfo* gpu_info) {
617 TRACE_EVENT0("gpu", "CollectDriverInfoGL"); 617 TRACE_EVENT0("gpu", "CollectDriverInfoGL");
(...skipping 16 matching lines...) Expand all
634 basic_gpu_info->software_rendering = true; 634 basic_gpu_info->software_rendering = true;
635 return; 635 return;
636 } 636 }
637 637
638 MergeGPUInfoGL(basic_gpu_info, context_gpu_info); 638 MergeGPUInfoGL(basic_gpu_info, context_gpu_info);
639 639
640 basic_gpu_info->dx_diagnostics = context_gpu_info.dx_diagnostics; 640 basic_gpu_info->dx_diagnostics = context_gpu_info.dx_diagnostics;
641 } 641 }
642 642
643 } // namespace gpu_info_collector 643 } // namespace gpu_info_collector
OLDNEW
« no previous file with comments | « content/gpu/gpu_child_thread.cc ('k') | content/gpu/gpu_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698