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

Unified Diff: chrome/gpu/gpu_info_collector_linux.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: For the records 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
« no previous file with comments | « chrome/gpu/gpu_info_collector.h ('k') | chrome/gpu/gpu_info_collector_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/gpu/gpu_info_collector_linux.cc
===================================================================
--- chrome/gpu/gpu_info_collector_linux.cc (revision 75345)
+++ chrome/gpu/gpu_info_collector_linux.cc (working copy)
@@ -137,6 +137,21 @@
return CollectGraphicsInfoGL(gpu_info);
}
+bool CollectPreliminaryGraphicsInfo(GPUInfo* gpu_info) {
+ DCHECK(gpu_info);
+
+ gpu_info->SetLevel(GPUInfo::kPartial);
+
+ bool rt = true;
+ if (!CollectVideoCardInfo(gpu_info))
+ rt = false;
+
+ // TODO(zmo): if vendor is ATI, consider passing /etc/ati/amdpcsdb.default
+ // for driver information.
+
+ return rt;
+}
+
bool CollectVideoCardInfo(GPUInfo* gpu_info) {
DCHECK(gpu_info);
« no previous file with comments | « chrome/gpu/gpu_info_collector.h ('k') | chrome/gpu/gpu_info_collector_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698