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 GPU_CONFIG_GPU_INFO_COLLECTOR_H_ | 5 #ifndef GPU_CONFIG_GPU_INFO_COLLECTOR_H_ |
6 #define GPU_CONFIG_GPU_INFO_COLLECTOR_H_ | 6 #define GPU_CONFIG_GPU_INFO_COLLECTOR_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 const GPUInfo& context_gpu_info); | 45 const GPUInfo& context_gpu_info); |
46 | 46 |
47 // MergeGPUInfo() when GL driver is used. | 47 // MergeGPUInfo() when GL driver is used. |
48 GPU_EXPORT void MergeGPUInfoGL(GPUInfo* basic_gpu_info, | 48 GPU_EXPORT void MergeGPUInfoGL(GPUInfo* basic_gpu_info, |
49 const GPUInfo& context_gpu_info); | 49 const GPUInfo& context_gpu_info); |
50 | 50 |
51 // If more than one GPUs are identified, and GL strings are available, | 51 // If more than one GPUs are identified, and GL strings are available, |
52 // identify the active GPU based on GL strings. | 52 // identify the active GPU based on GL strings. |
53 GPU_EXPORT void IdentifyActiveGPU(GPUInfo* gpu_info); | 53 GPU_EXPORT void IdentifyActiveGPU(GPUInfo* gpu_info); |
54 | 54 |
| 55 // Parse kGpuTestingVendorId and kGpuTestingDeviceId from the command line. |
| 56 GPU_EXPORT void ParseTestingIds(uint32_t* vendor_id, uint32_t* device_id); |
| 57 |
55 } // namespace gpu | 58 } // namespace gpu |
56 | 59 |
57 #endif // GPU_CONFIG_GPU_INFO_COLLECTOR_H_ | 60 #endif // GPU_CONFIG_GPU_INFO_COLLECTOR_H_ |
OLD | NEW |