summaryrefslogtreecommitdiffstats
path: root/chrome/gpu/gpu_info_collector.h
diff options
context:
space:
mode:
authorzmo@google.com <zmo@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-21 00:27:53 +0000
committerzmo@google.com <zmo@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-21 00:27:53 +0000
commit7004d7ebec6cd4de175d8f894c2a0c58fb6f41c8 (patch)
tree5efa0e86cd64c61420909af28d43211d609ebf0f /chrome/gpu/gpu_info_collector.h
parentc7a827e9d91099bae12379f92467e29a8d7ffaab (diff)
downloadchromium_src-7004d7ebec6cd4de175d8f894c2a0c58fb6f41c8.zip
chromium_src-7004d7ebec6cd4de175d8f894c2a0c58fb6f41c8.tar.gz
chromium_src-7004d7ebec6cd4de175d8f894c2a0c58fb6f41c8.tar.bz2
Refactor and improve gpu_info_collector: collect information on linux;
collect extra information (driver_vendor, gl_renderer, etc.) on Mac/linux. Note that this CL takes some code from rlp's long outstandingCL (with her permission). BUG=49579 TEST=unittest Review URL: http://codereview.chromium.org/6346007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72055 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/gpu/gpu_info_collector.h')
-rw-r--r--chrome/gpu/gpu_info_collector.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/chrome/gpu/gpu_info_collector.h b/chrome/gpu/gpu_info_collector.h
index ea11093..577d197 100644
--- a/chrome/gpu/gpu_info_collector.h
+++ b/chrome/gpu/gpu_info_collector.h
@@ -27,13 +27,22 @@ bool CollectGraphicsInfo(GPUInfo* gpu_info);
// A D3D argument is passed in for testing purposes
bool CollectGraphicsInfoD3D(IDirect3D9* d3d, GPUInfo* gpu_info);
-// The GL version of collecting information
-bool CollectGraphicsInfoGL(GPUInfo* gpu_info);
-
// Collect the DirectX Disagnostics information about the attached displays.
bool GetDxDiagnostics(DxDiagNode* output);
#endif
+// All platforms have a GL version for collecting information
+bool CollectGraphicsInfoGL(GPUInfo* gpu_info);
+
+// Collect GL and Shading language version information
+bool CollectGLVersionInfo(GPUInfo* gpu_info);
+
+// Platform specific method for collecting vendor and device ids
+bool CollectVideoCardInfo(GPUInfo* gpu_info);
+
+// Each platform stores the driver version on the GL_VERSION string differently
+bool CollectDriverInfo(GPUInfo* gpu_info);
+
} // namespace gpu_info_collector
#endif // CHROME_GPU_GPU_INFO_COLLECTOR_H__