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

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

Issue 10790060: Wire the AMD switchable videcard detection (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « content/content_gpu.gypi ('k') | content/gpu/gpu_info_collector_win.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 CONTENT_GPU_GPU_INFO_COLLECTOR_H_ 5 #ifndef CONTENT_GPU_GPU_INFO_COLLECTOR_H_
6 #define CONTENT_GPU_GPU_INFO_COLLECTOR_H_ 6 #define CONTENT_GPU_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 "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 23 matching lines...) Expand all
34 content::GPUInfo* gpu_info); 34 content::GPUInfo* gpu_info);
35 35
36 // Collects D3D driver version/date through registry lookup. 36 // Collects D3D driver version/date through registry lookup.
37 // Note that this does not require a D3D context. 37 // Note that this does not require a D3D context.
38 // device_id here is the raw data in DISPLAY_DEVICE. 38 // device_id here is the raw data in DISPLAY_DEVICE.
39 CONTENT_EXPORT bool CollectDriverInfoD3D(const std::wstring& device_id, 39 CONTENT_EXPORT bool CollectDriverInfoD3D(const std::wstring& device_id,
40 content::GPUInfo* gpu_info); 40 content::GPUInfo* gpu_info);
41 41
42 // Collect the DirectX Disagnostics information about the attached displays. 42 // Collect the DirectX Disagnostics information about the attached displays.
43 bool GetDxDiagnostics(content::DxDiagNode* output); 43 bool GetDxDiagnostics(content::DxDiagNode* output);
44 #endif 44 #endif // OS_WIN
45 45
46 // All platforms have a GL version for collecting information 46 // All platforms have a GL version for collecting information
47 CONTENT_EXPORT bool CollectGraphicsInfoGL(content::GPUInfo* gpu_info); 47 CONTENT_EXPORT bool CollectGraphicsInfoGL(content::GPUInfo* gpu_info);
48 48
49 // Collect GL and Shading language version information 49 // Collect GL and Shading language version information
50 bool CollectGLVersionInfo(content::GPUInfo* gpu_info); 50 bool CollectGLVersionInfo(content::GPUInfo* gpu_info);
51 51
52 // Platform specific method for collecting vendor and device ids 52 // Platform specific method for collecting vendor and device ids
53 bool CollectVideoCardInfo(content::GPUInfo* gpu_info); 53 bool CollectVideoCardInfo(content::GPUInfo* gpu_info);
54 54
55 // Each platform stores the driver version on the GL_VERSION string differently 55 // Each platform stores the driver version on the GL_VERSION string differently
56 bool CollectDriverInfoGL(content::GPUInfo* gpu_info); 56 bool CollectDriverInfoGL(content::GPUInfo* gpu_info);
57 57
58 // Advanced Micro Devices has interesting configurations on laptops were
59 // there are two videocards that can alternatively a given process output.
60 enum AMDVideoCardType {
61 UNKNOWN,
62 STANDALONE,
63 INTEGRATED,
64 SWITCHABLE
65 };
66
58 } // namespace gpu_info_collector 67 } // namespace gpu_info_collector
59 68
60 #endif // CONTENT_GPU_GPU_INFO_COLLECTOR_H_ 69 #endif // CONTENT_GPU_GPU_INFO_COLLECTOR_H_
OLDNEW
« no previous file with comments | « content/content_gpu.gypi ('k') | content/gpu/gpu_info_collector_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698