OLD | NEW |
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_COMMON_GPU_INFO_H__ | 5 #ifndef CHROME_COMMON_GPU_INFO_H__ |
6 #define CHROME_COMMON_GPU_INFO_H__ | 6 #define CHROME_COMMON_GPU_INFO_H__ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 // Provides access to the GPU information for the system | 9 // Provides access to the GPU information for the system |
10 // on which chrome is currently running. | 10 // on which chrome is currently running. |
11 | 11 |
12 #include <string> | 12 #include <string> |
13 | 13 |
14 #include "base/basictypes.h" | 14 #include "base/basictypes.h" |
15 #include "base/scoped_ptr.h" | 15 #include "base/scoped_ptr.h" |
16 #include "base/time.h" | 16 #include "base/time.h" |
17 #include "build/build_config.h" | 17 #include "build/build_config.h" |
18 #include "chrome/common/dx_diag_node.h" | 18 #include "chrome/common/dx_diag_node.h" |
19 | 19 |
20 class GPUInfo { | 20 class GPUInfo { |
21 public: | 21 public: |
22 GPUInfo(); | |
23 ~GPUInfo() {} | |
24 | |
25 enum Progress { | 22 enum Progress { |
26 kUninitialized, | 23 kUninitialized, |
27 kPartial, | 24 kPartial, |
28 kComplete, | 25 kComplete, |
29 }; | 26 }; |
30 | 27 |
| 28 GPUInfo(); |
| 29 ~GPUInfo(); |
| 30 |
31 // Returns whether this GPUInfo has been partially or fully initialized with | 31 // Returns whether this GPUInfo has been partially or fully initialized with |
32 // information. | 32 // information. |
33 Progress progress() const; | 33 Progress progress() const; |
34 | 34 |
35 // The amount of time taken to get from the process starting to the message | 35 // The amount of time taken to get from the process starting to the message |
36 // loop being pumped. | 36 // loop being pumped. |
37 base::TimeDelta initialization_time() const; | 37 base::TimeDelta initialization_time() const; |
38 | 38 |
39 // Return the DWORD (uint32) representing the graphics card vendor id. | 39 // Return the DWORD (uint32) representing the graphics card vendor id. |
40 uint32 vendor_id() const; | 40 uint32 vendor_id() const; |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 std::string gl_renderer_; | 133 std::string gl_renderer_; |
134 std::string gl_extensions_; | 134 std::string gl_extensions_; |
135 bool can_lose_context_; | 135 bool can_lose_context_; |
136 | 136 |
137 #if defined(OS_WIN) | 137 #if defined(OS_WIN) |
138 DxDiagNode dx_diagnostics_; | 138 DxDiagNode dx_diagnostics_; |
139 #endif | 139 #endif |
140 }; | 140 }; |
141 | 141 |
142 #endif // CHROME_COMMON_GPU_INFO_H__ | 142 #endif // CHROME_COMMON_GPU_INFO_H__ |
OLD | NEW |