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_PUBLIC_COMMON_GPU_INFO_H_ | 5 #ifndef GPU_CONFIG_GPU_INFO_H_ |
6 #define CONTENT_PUBLIC_COMMON_GPU_INFO_H_ | 6 #define GPU_CONFIG_GPU_INFO_H_ |
7 | 7 |
8 // Provides access to the GPU information for the system | 8 // Provides access to the GPU information for the system |
9 // on which chrome is currently running. | 9 // on which chrome is currently running. |
10 | 10 |
11 #include <string> | 11 #include <string> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/basictypes.h" | 14 #include "base/basictypes.h" |
15 #include "base/time.h" | 15 #include "base/time.h" |
16 #include "base/version.h" | 16 #include "base/version.h" |
17 #include "build/build_config.h" | 17 #include "build/build_config.h" |
18 #include "content/common/content_export.h" | 18 #include "gpu/config/dx_diag_node.h" |
19 #include "content/public/common/dx_diag_node.h" | 19 #include "gpu/config/gpu_performance_stats.h" |
20 #include "content/public/common/gpu_performance_stats.h" | 20 #include "gpu/gpu_export.h" |
21 | 21 |
22 namespace content { | 22 namespace gpu { |
23 | 23 |
24 struct CONTENT_EXPORT GPUInfo { | 24 struct GPU_EXPORT GPUInfo { |
25 struct CONTENT_EXPORT GPUDevice { | 25 struct GPU_EXPORT GPUDevice { |
26 GPUDevice(); | 26 GPUDevice(); |
27 ~GPUDevice(); | 27 ~GPUDevice(); |
28 | 28 |
29 // The DWORD (uint32) representing the graphics card vendor id. | 29 // The DWORD (uint32) representing the graphics card vendor id. |
30 uint32 vendor_id; | 30 uint32 vendor_id; |
31 | 31 |
32 // The DWORD (uint32) representing the graphics card device id. | 32 // The DWORD (uint32) representing the graphics card device id. |
33 // Device ids are unique to vendor, not to one another. | 33 // Device ids are unique to vendor, not to one another. |
34 uint32 device_id; | 34 uint32 device_id; |
35 | 35 |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 | 118 |
119 // Whether the gpu process is running in a sandbox. | 119 // Whether the gpu process is running in a sandbox. |
120 bool sandboxed; | 120 bool sandboxed; |
121 | 121 |
122 #if defined(OS_WIN) | 122 #if defined(OS_WIN) |
123 // The information returned by the DirectX Diagnostics Tool. | 123 // The information returned by the DirectX Diagnostics Tool. |
124 DxDiagNode dx_diagnostics; | 124 DxDiagNode dx_diagnostics; |
125 #endif | 125 #endif |
126 }; | 126 }; |
127 | 127 |
128 } // namespace content | 128 } // namespace gpu |
129 | 129 |
130 #endif // CONTENT_PUBLIC_COMMON_GPU_INFO_H_ | 130 #endif // GPU_CONFIG_GPU_INFO_H_ |
OLD | NEW |