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

Side by Side Diff: content/common/gpu_info.h

Issue 6793054: Moved code that runs in both the browser and GPU process from content/gpu to content/common/gpu. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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/common/gpu/x_util.cc ('k') | content/common/gpu_info.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_COMMON_GPU_INFO_H_
6 #define CONTENT_COMMON_GPU_INFO_H_
7 #pragma once
8
9 // Provides access to the GPU information for the system
10 // on which chrome is currently running.
11
12 #include <string>
13
14 #include "base/basictypes.h"
15 #include "base/time.h"
16 #include "build/build_config.h"
17 #include "content/common/dx_diag_node.h"
18
19 struct GPUInfo {
20 GPUInfo();
21 ~GPUInfo();
22
23 // If it's the same GPU, i.e., device id and vendor id are the same, then
24 // copy over the fields that are not set yet and ignore the rest.
25 // If it's a different GPU, then reset and copy over everything.
26 // Return true if something changes that may affect blacklisting; currently
27 // they are device_id, vendor_id, driver_vendor, driver_version, driver_date,
28 // and gl_renderer.
29 bool Merge(const GPUInfo& other);
30
31 // Whether more GPUInfo fields might be collected in the future.
32 bool finalized;
33
34 // The amount of time taken to get from the process starting to the message
35 // loop being pumped.
36 base::TimeDelta initialization_time;
37
38 // The DWORD (uint32) representing the graphics card vendor id.
39 uint32 vendor_id;
40
41 // The DWORD (uint32) representing the graphics card device id. Device ids
42 // are unique to vendor, not to one another.
43 uint32 device_id;
44
45 // The vendor of the graphics driver currently installed.
46 std::string driver_vendor;
47
48 // The version of the graphics driver currently installed.
49 std::string driver_version;
50
51 // The date of the graphics driver currently installed.
52 std::string driver_date;
53
54 // The version of the pixel/fragment shader used by the gpu.
55 std::string pixel_shader_version;
56
57 // The version of the vertex shader used by the gpu.
58 std::string vertex_shader_version;
59
60 // The version of OpenGL we are using.
61 // TODO(zmo): should be able to tell if it's GL or GLES.
62 std::string gl_version;
63
64 // The GL_VERSION string. "" if we are not using OpenGL.
65 std::string gl_version_string;
66
67 // The GL_VENDOR string. "" if we are not using OpenGL.
68 std::string gl_vendor;
69
70 // The GL_RENDERER string. "" if we are not using OpenGL.
71 std::string gl_renderer;
72
73 // The GL_EXTENSIONS string. "" if we are not using OpenGL.
74 std::string gl_extensions;
75
76 // The device semantics, i.e. whether the Vista and Windows 7 specific
77 // semantics are available.
78 bool can_lose_context;
79
80 #if defined(OS_WIN)
81 // The information returned by the DirectX Diagnostics Tool.
82 DxDiagNode dx_diagnostics;
83 #endif
84 };
85
86 #endif // CONTENT_COMMON_GPU_INFO_H_
OLDNEW
« no previous file with comments | « content/common/gpu/x_util.cc ('k') | content/common/gpu_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698