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

Unified Diff: chrome/gpu/gpu_info_collector_win.cc

Issue 6531023: Collect as much GPU information as possible without creating a GL/D3D context... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: move safe info collection into gpu process Created 9 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/gpu/gpu_info_collector_win.cc
===================================================================
--- chrome/gpu/gpu_info_collector_win.cc (revision 75345)
+++ chrome/gpu/gpu_info_collector_win.cc (working copy)
@@ -53,6 +53,18 @@
return true;
}
+bool CollectGraphicsInfoSafe(GPUInfo* gpu_info) {
+ DCHECK(gpu_info);
+
+ gpu_info->SetLevel(GPUInfo::kPartial);
+
+ bool rt = true;
+ if (!CollectVideoCardInfo(gpu_info))
+ rt = false;
+
+ return rt;
+}
+
bool CollectGraphicsInfoD3D(IDirect3D9* d3d, GPUInfo* gpu_info) {
DCHECK(d3d);
DCHECK(gpu_info);

Powered by Google App Engine
This is Rietveld 408576698