Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(55)

Side by Side Diff: gpu/config/gpu_info_collector.h

Issue 2725873007: gpu/config: Use angle::GetSystemInfo on Linux (Closed)
Patch Set: "Fix" gn check Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gpu/config/DEPS ('k') | gpu/config/gpu_info_collector.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"
11 #include "gpu/config/gpu_info.h" 11 #include "gpu/config/gpu_info.h"
12 #include "gpu/gpu_export.h" 12 #include "gpu/gpu_export.h"
13 13
14 namespace angle {
15 struct SystemInfo;
16 }
17
14 namespace gpu { 18 namespace gpu {
15 19
16 // Collects basic GPU info without creating a GL/DirectX context (and without 20 // Collects basic GPU info without creating a GL/DirectX context (and without
17 // the danger of crashing), including vendor_id and device_id. 21 // the danger of crashing), including vendor_id and device_id.
18 // This is called at browser process startup time. 22 // This is called at browser process startup time.
19 // The subset each platform collects may be different. 23 // The subset each platform collects may be different.
20 GPU_EXPORT CollectInfoResult CollectBasicGraphicsInfo(GPUInfo* gpu_info); 24 GPU_EXPORT CollectInfoResult CollectBasicGraphicsInfo(GPUInfo* gpu_info);
21 25
22 // Create a GL/DirectX context and collect related info. 26 // Create a GL/DirectX context and collect related info.
23 // This is called at GPU process startup time. 27 // This is called at GPU process startup time.
(...skipping 17 matching lines...) Expand all
41 const GPUInfo& context_gpu_info); 45 const GPUInfo& context_gpu_info);
42 46
43 // MergeGPUInfo() when GL driver is used. 47 // MergeGPUInfo() when GL driver is used.
44 GPU_EXPORT void MergeGPUInfoGL(GPUInfo* basic_gpu_info, 48 GPU_EXPORT void MergeGPUInfoGL(GPUInfo* basic_gpu_info,
45 const GPUInfo& context_gpu_info); 49 const GPUInfo& context_gpu_info);
46 50
47 // 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,
48 // identify the active GPU based on GL strings. 52 // identify the active GPU based on GL strings.
49 GPU_EXPORT void IdentifyActiveGPU(GPUInfo* gpu_info); 53 GPU_EXPORT void IdentifyActiveGPU(GPUInfo* gpu_info);
50 54
55 // Helper function to convert data from ANGLE's system info gathering library
56 // into a GPUInfo
57 void FillGPUInfoFromSystemInfo(GPUInfo* gpu_info,
58 angle::SystemInfo* system_info);
59
51 } // namespace gpu 60 } // namespace gpu
52 61
53 #endif // GPU_CONFIG_GPU_INFO_COLLECTOR_H_ 62 #endif // GPU_CONFIG_GPU_INFO_COLLECTOR_H_
OLDNEW
« no previous file with comments | « gpu/config/DEPS ('k') | gpu/config/gpu_info_collector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698