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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 #include "gpu/config/gpu_info.h" | 10 #include "gpu/config/gpu_info.h" |
(...skipping 28 matching lines...) Expand all Loading... |
39 // Merge GPUInfo from CollectContextGraphicsInfo into basic GPUInfo. | 39 // Merge GPUInfo from CollectContextGraphicsInfo into basic GPUInfo. |
40 // This is platform specific, depending on which info are collected at which | 40 // This is platform specific, depending on which info are collected at which |
41 // stage. | 41 // stage. |
42 GPU_EXPORT void MergeGPUInfo(GPUInfo* basic_gpu_info, | 42 GPU_EXPORT void MergeGPUInfo(GPUInfo* basic_gpu_info, |
43 const GPUInfo& context_gpu_info); | 43 const GPUInfo& context_gpu_info); |
44 | 44 |
45 // MergeGPUInfo() when GL driver is used. | 45 // MergeGPUInfo() when GL driver is used. |
46 GPU_EXPORT void MergeGPUInfoGL(GPUInfo* basic_gpu_info, | 46 GPU_EXPORT void MergeGPUInfoGL(GPUInfo* basic_gpu_info, |
47 const GPUInfo& context_gpu_info); | 47 const GPUInfo& context_gpu_info); |
48 | 48 |
| 49 // If more than one GPUs are identified, and GL strings are available, |
| 50 // identify the active GPU based on GL strings. |
| 51 GPU_EXPORT void IdentifyActiveGPU(GPUInfo* gpu_info); |
| 52 |
49 } // namespace gpu | 53 } // namespace gpu |
50 | 54 |
51 #endif // GPU_CONFIG_GPU_INFO_COLLECTOR_H_ | 55 #endif // GPU_CONFIG_GPU_INFO_COLLECTOR_H_ |
OLD | NEW |