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

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

Issue 10855014: Revert 149966 on 1180 (M21) - Merge 147334 to 1180 (M21) - Wire the AMD switchable videcard detecti… (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1180/src/
Patch Set: Created 8 years, 4 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 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 24 matching lines...) Expand all
35 content::GPUInfo* gpu_info); 35 content::GPUInfo* gpu_info);
36 36
37 // Collects D3D driver version/date through registry lookup. 37 // Collects D3D driver version/date through registry lookup.
38 // Note that this does not require a D3D context. 38 // Note that this does not require a D3D context.
39 // device_id here is the raw data in DISPLAY_DEVICE. 39 // device_id here is the raw data in DISPLAY_DEVICE.
40 CONTENT_EXPORT bool CollectDriverInfoD3D(const std::wstring& device_id, 40 CONTENT_EXPORT bool CollectDriverInfoD3D(const std::wstring& device_id,
41 content::GPUInfo* gpu_info); 41 content::GPUInfo* gpu_info);
42 42
43 // Collect the DirectX Disagnostics information about the attached displays. 43 // Collect the DirectX Disagnostics information about the attached displays.
44 bool GetDxDiagnostics(content::DxDiagNode* output); 44 bool GetDxDiagnostics(content::DxDiagNode* output);
45 #endif // OS_WIN 45 #endif
46 46
47 // All platforms have a GL version for collecting information 47 // All platforms have a GL version for collecting information
48 CONTENT_EXPORT bool CollectGraphicsInfoGL(content::GPUInfo* gpu_info); 48 CONTENT_EXPORT bool CollectGraphicsInfoGL(content::GPUInfo* gpu_info);
49 49
50 // Collect GL and Shading language version information 50 // Collect GL and Shading language version information
51 bool CollectGLVersionInfo(content::GPUInfo* gpu_info); 51 bool CollectGLVersionInfo(content::GPUInfo* gpu_info);
52 52
53 // Platform specific method for collecting vendor and device ids 53 // Platform specific method for collecting vendor and device ids
54 bool CollectVideoCardInfo(content::GPUInfo* gpu_info); 54 bool CollectVideoCardInfo(content::GPUInfo* gpu_info);
55 55
56 // Each platform stores the driver version on the GL_VERSION string differently 56 // Each platform stores the driver version on the GL_VERSION string differently
57 bool CollectDriverInfoGL(content::GPUInfo* gpu_info); 57 bool CollectDriverInfoGL(content::GPUInfo* gpu_info);
58 58
59 // Advanced Micro Devices has interesting configurations on laptops were
60 // there are two videocards that can alternatively a given process output.
61 enum AMDVideoCardType {
62 UNKNOWN,
63 STANDALONE,
64 INTEGRATED,
65 SWITCHABLE
66 };
67
68 } // namespace gpu_info_collector 59 } // namespace gpu_info_collector
69 60
70 #endif // CONTENT_GPU_GPU_INFO_COLLECTOR_H_ 61 #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