OLD | NEW |
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 #ifndef CONTENT_GPU_GPU_INFO_COLLECTOR_H_ | 5 #ifndef CONTENT_GPU_GPU_INFO_COLLECTOR_H_ |
6 #define CONTENT_GPU_GPU_INFO_COLLECTOR_H_ | 6 #define CONTENT_GPU_GPU_INFO_COLLECTOR_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
(...skipping 24 matching lines...) Expand all Loading... |
35 content::GPUInfo* gpu_info); | 35 content::GPUInfo* gpu_info); |
36 | 36 |
37 // Collects D3D driver version/date through registry lookup. | 37 // Collects D3D driver version/date through registry lookup. |
38 // Note that this does not require a D3D context. | 38 // Note that this does not require a D3D context. |
39 // device_id here is the raw data in DISPLAY_DEVICE. | 39 // device_id here is the raw data in DISPLAY_DEVICE. |
40 CONTENT_EXPORT bool CollectDriverInfoD3D(const std::wstring& device_id, | 40 CONTENT_EXPORT bool CollectDriverInfoD3D(const std::wstring& device_id, |
41 content::GPUInfo* gpu_info); | 41 content::GPUInfo* gpu_info); |
42 | 42 |
43 // Collect the DirectX Disagnostics information about the attached displays. | 43 // Collect the DirectX Disagnostics information about the attached displays. |
44 bool GetDxDiagnostics(content::DxDiagNode* output); | 44 bool GetDxDiagnostics(content::DxDiagNode* output); |
45 #endif // OS_WIN | 45 #endif |
46 | 46 |
47 // All platforms have a GL version for collecting information | 47 // All platforms have a GL version for collecting information |
48 CONTENT_EXPORT bool CollectGraphicsInfoGL(content::GPUInfo* gpu_info); | 48 CONTENT_EXPORT bool CollectGraphicsInfoGL(content::GPUInfo* gpu_info); |
49 | 49 |
50 // Collect GL and Shading language version information | 50 // Collect GL and Shading language version information |
51 bool CollectGLVersionInfo(content::GPUInfo* gpu_info); | 51 bool CollectGLVersionInfo(content::GPUInfo* gpu_info); |
52 | 52 |
53 // Platform specific method for collecting vendor and device ids | 53 // Platform specific method for collecting vendor and device ids |
54 bool CollectVideoCardInfo(content::GPUInfo* gpu_info); | 54 bool CollectVideoCardInfo(content::GPUInfo* gpu_info); |
55 | 55 |
56 // Each platform stores the driver version on the GL_VERSION string differently | 56 // Each platform stores the driver version on the GL_VERSION string differently |
57 bool CollectDriverInfoGL(content::GPUInfo* gpu_info); | 57 bool CollectDriverInfoGL(content::GPUInfo* gpu_info); |
58 | 58 |
59 // Advanced Micro Devices has interesting configurations on laptops were | |
60 // there are two videocards that can alternatively a given process output. | |
61 enum AMDVideoCardType { | |
62 UNKNOWN, | |
63 STANDALONE, | |
64 INTEGRATED, | |
65 SWITCHABLE | |
66 }; | |
67 | |
68 } // namespace gpu_info_collector | 59 } // namespace gpu_info_collector |
69 | 60 |
70 #endif // CONTENT_GPU_GPU_INFO_COLLECTOR_H_ | 61 #endif // CONTENT_GPU_GPU_INFO_COLLECTOR_H_ |
OLD | NEW |