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

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

Issue 8528019: Fix components build on Linux when toolkit_views=1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: content_export first Created 9 years, 1 month 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 12 matching lines...) Expand all
23 // without creating a GL/DirectX context (and without the danger of crashing). 23 // without creating a GL/DirectX context (and without the danger of crashing).
24 // The subset each platform collects may be different. 24 // The subset each platform collects may be different.
25 bool CollectPreliminaryGraphicsInfo(content::GPUInfo* gpu_info); 25 bool CollectPreliminaryGraphicsInfo(content::GPUInfo* gpu_info);
26 26
27 #if defined(OS_WIN) 27 #if defined(OS_WIN)
28 // 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
29 // collecting info based on what's on a user's machine. 29 // collecting info based on what's on a user's machine.
30 // 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.
31 31
32 // A D3D argument is passed in for testing purposes 32 // A D3D argument is passed in for testing purposes
33 bool CONTENT_EXPORT CollectGraphicsInfoD3D(IDirect3D9* d3d, 33 CONTENT_EXPORT bool CollectGraphicsInfoD3D(IDirect3D9* d3d,
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 bool CONTENT_EXPORT 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
45 45
46 // All platforms have a GL version for collecting information 46 // All platforms have a GL version for collecting information
47 bool CONTENT_EXPORT 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 } // namespace gpu_info_collector 58 } // namespace gpu_info_collector
59 59
60 #endif // CONTENT_GPU_GPU_INFO_COLLECTOR_H_ 60 #endif // CONTENT_GPU_GPU_INFO_COLLECTOR_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view.h ('k') | content/public/common/url_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698