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

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

Issue 1503223005: Identify the active GPU using GL strings in multiple GPU situation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/gpu_control_list_format.txt ('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 "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
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_
OLDNEW
« no previous file with comments | « gpu/config/gpu_control_list_format.txt ('k') | gpu/config/gpu_info_collector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698