| OLD | NEW |
| 1 // Copyright (c) 2006-2010 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 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(); | 22 GPUInfo(); |
| 23 ~GPUInfo() {} | 23 ~GPUInfo(); |
| 24 | 24 |
| 25 enum Level { | 25 enum Level { |
| 26 kUninitialized, | 26 kUninitialized, |
| 27 kPartial, | 27 kPartial, |
| 28 kCompleting, | 28 kCompleting, |
| 29 kComplete, | 29 kComplete, |
| 30 }; | 30 }; |
| 31 | 31 |
| 32 // Returns whether this GPUInfo has been partially or fully initialized with | 32 // Returns whether this GPUInfo has been partially or fully initialized with |
| 33 // information. | 33 // information. |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 std::string gl_renderer_; | 134 std::string gl_renderer_; |
| 135 std::string gl_extensions_; | 135 std::string gl_extensions_; |
| 136 bool can_lose_context_; | 136 bool can_lose_context_; |
| 137 | 137 |
| 138 #if defined(OS_WIN) | 138 #if defined(OS_WIN) |
| 139 DxDiagNode dx_diagnostics_; | 139 DxDiagNode dx_diagnostics_; |
| 140 #endif | 140 #endif |
| 141 }; | 141 }; |
| 142 | 142 |
| 143 #endif // CHROME_COMMON_GPU_INFO_H__ | 143 #endif // CHROME_COMMON_GPU_INFO_H__ |
| OLD | NEW |