| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 // Merge GPUInfo from CollectContextGraphicsInfo into basic GPUInfo. | 57 // Merge GPUInfo from CollectContextGraphicsInfo into basic GPUInfo. |
| 58 // This is platform specific, depending on which info are collected at which | 58 // This is platform specific, depending on which info are collected at which |
| 59 // stage. | 59 // stage. |
| 60 GPU_EXPORT void MergeGPUInfo(GPUInfo* basic_gpu_info, | 60 GPU_EXPORT void MergeGPUInfo(GPUInfo* basic_gpu_info, |
| 61 const GPUInfo& context_gpu_info); | 61 const GPUInfo& context_gpu_info); |
| 62 | 62 |
| 63 // MergeGPUInfo() when GL driver is used. | 63 // MergeGPUInfo() when GL driver is used. |
| 64 GPU_EXPORT void MergeGPUInfoGL(GPUInfo* basic_gpu_info, | 64 GPU_EXPORT void MergeGPUInfoGL(GPUInfo* basic_gpu_info, |
| 65 const GPUInfo& context_gpu_info); | 65 const GPUInfo& context_gpu_info); |
| 66 | 66 |
| 67 // Advanced Micro Devices has interesting configurations on laptops were | |
| 68 // there are two videocards that can alternatively a given process output. | |
| 69 // TODO(zmo): remove them when we remove the GetAMDVideocardType() in the | |
| 70 // internal src/third_party/amd. | |
| 71 enum AMDVideoCardType { | |
| 72 UNKNOWN, | |
| 73 STANDALONE, | |
| 74 INTEGRATED, | |
| 75 SWITCHABLE | |
| 76 }; | |
| 77 | |
| 78 } // namespace gpu | 67 } // namespace gpu |
| 79 | 68 |
| 80 #endif // GPU_CONFIG_GPU_INFO_COLLECTOR_H_ | 69 #endif // GPU_CONFIG_GPU_INFO_COLLECTOR_H_ |
| OLD | NEW |