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

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

Issue 6531023: Collect as much GPU information as possible without creating a GL/D3D context... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: For the records Created 9 years, 10 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 | « chrome/common/gpu_messages_internal.h ('k') | chrome/gpu/gpu_info_collector_linux.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) 2006-2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2010 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 CHROME_GPU_GPU_INFO_COLLECTOR_H__ 5 #ifndef CHROME_GPU_GPU_INFO_COLLECTOR_H__
6 #define CHROME_GPU_GPU_INFO_COLLECTOR_H__ 6 #define CHROME_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"
11 #include "chrome/common/dx_diag_node.h" 11 #include "chrome/common/dx_diag_node.h"
12 #include "chrome/common/gpu_info.h" 12 #include "chrome/common/gpu_info.h"
13 13
14 struct IDirect3D9; 14 struct IDirect3D9;
15 15
16 namespace gpu_info_collector { 16 namespace gpu_info_collector {
17 17
18 // Populate variables with necessary graphics card information. 18 // Populate variables with necessary graphics card information.
19 // Returns true on success. 19 // Returns true on success.
20 bool CollectGraphicsInfo(GPUInfo* gpu_info); 20 bool CollectGraphicsInfo(GPUInfo* gpu_info);
21 21
22 // Similar to CollectGraphicsInfo, only this collects a subset of variables
23 // without creating a GL/DirectX context (and without the danger of crashing).
24 // The subset each platform collects may be different.
25 bool CollectPreliminaryGraphicsInfo(GPUInfo* gpu_info);
26
22 #if defined(OS_WIN) 27 #if defined(OS_WIN)
23 // Windows provides two ways of doing graphics so we need two ways of 28 // Windows provides two ways of doing graphics so we need two ways of
24 // collecting info based on what's on a user's machine. 29 // collecting info based on what's on a user's machine.
25 // The selection between the two methods is done in the cc file. 30 // The selection between the two methods is done in the cc file.
26 31
27 // A D3D argument is passed in for testing purposes 32 // A D3D argument is passed in for testing purposes
28 bool CollectGraphicsInfoD3D(IDirect3D9* d3d, GPUInfo* gpu_info); 33 bool CollectGraphicsInfoD3D(IDirect3D9* d3d, GPUInfo* gpu_info);
29 34
30 // Collect the DirectX Disagnostics information about the attached displays. 35 // Collect the DirectX Disagnostics information about the attached displays.
31 bool GetDxDiagnostics(DxDiagNode* output); 36 bool GetDxDiagnostics(DxDiagNode* output);
32 #endif 37 #endif
33 38
34 // All platforms have a GL version for collecting information 39 // All platforms have a GL version for collecting information
35 bool CollectGraphicsInfoGL(GPUInfo* gpu_info); 40 bool CollectGraphicsInfoGL(GPUInfo* gpu_info);
36 41
37 // Collect GL and Shading language version information 42 // Collect GL and Shading language version information
38 bool CollectGLVersionInfo(GPUInfo* gpu_info); 43 bool CollectGLVersionInfo(GPUInfo* gpu_info);
39 44
40 // Platform specific method for collecting vendor and device ids 45 // Platform specific method for collecting vendor and device ids
41 bool CollectVideoCardInfo(GPUInfo* gpu_info); 46 bool CollectVideoCardInfo(GPUInfo* gpu_info);
42 47
43 // Each platform stores the driver version on the GL_VERSION string differently 48 // Each platform stores the driver version on the GL_VERSION string differently
44 bool CollectDriverInfo(GPUInfo* gpu_info); 49 bool CollectDriverInfo(GPUInfo* gpu_info);
45 50
46 } // namespace gpu_info_collector 51 } // namespace gpu_info_collector
47 52
48 #endif // CHROME_GPU_GPU_INFO_COLLECTOR_H__ 53 #endif // CHROME_GPU_GPU_INFO_COLLECTOR_H__
OLDNEW
« no previous file with comments | « chrome/common/gpu_messages_internal.h ('k') | chrome/gpu/gpu_info_collector_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698