| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_PUBLIC_COMMON_GPU_INFO_H_ | 5 #ifndef CONTENT_PUBLIC_COMMON_GPU_INFO_H_ |
| 6 #define CONTENT_PUBLIC_COMMON_GPU_INFO_H_ | 6 #define CONTENT_PUBLIC_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/time.h" | 15 #include "base/time.h" |
| 16 #include "build/build_config.h" | 16 #include "build/build_config.h" |
| 17 #include "content/common/content_export.h" | 17 #include "content/common/content_export.h" |
| 18 #include "content/public/common/dx_diag_node.h" | 18 #include "content/public/common/dx_diag_node.h" |
| 19 #include "content/public/common/gpu_performance_stats.h" |
| 19 | 20 |
| 20 namespace content { | 21 namespace content { |
| 21 | 22 |
| 22 struct CONTENT_EXPORT GPUInfo { | 23 struct CONTENT_EXPORT GPUInfo { |
| 23 GPUInfo(); | 24 GPUInfo(); |
| 24 ~GPUInfo(); | 25 ~GPUInfo(); |
| 25 | 26 |
| 26 // Whether more GPUInfo fields might be collected in the future. | 27 // Whether more GPUInfo fields might be collected in the future. |
| 27 bool finalized; | 28 bool finalized; |
| 28 | 29 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 // The GL_RENDERER string. "" if we are not using OpenGL. | 69 // The GL_RENDERER string. "" if we are not using OpenGL. |
| 69 std::string gl_renderer; | 70 std::string gl_renderer; |
| 70 | 71 |
| 71 // The GL_EXTENSIONS string. "" if we are not using OpenGL. | 72 // The GL_EXTENSIONS string. "" if we are not using OpenGL. |
| 72 std::string gl_extensions; | 73 std::string gl_extensions; |
| 73 | 74 |
| 74 // The device semantics, i.e. whether the Vista and Windows 7 specific | 75 // The device semantics, i.e. whether the Vista and Windows 7 specific |
| 75 // semantics are available. | 76 // semantics are available. |
| 76 bool can_lose_context; | 77 bool can_lose_context; |
| 77 | 78 |
| 79 // By default all values are 0. |
| 80 GpuPerformanceStats performance_stats; |
| 81 |
| 78 #if defined(OS_WIN) | 82 #if defined(OS_WIN) |
| 79 // The information returned by the DirectX Diagnostics Tool. | 83 // The information returned by the DirectX Diagnostics Tool. |
| 80 DxDiagNode dx_diagnostics; | 84 DxDiagNode dx_diagnostics; |
| 81 #endif | 85 #endif |
| 82 }; | 86 }; |
| 83 | 87 |
| 84 } // namespace content | 88 } // namespace content |
| 85 | 89 |
| 86 #endif // CONTENT_PUBLIC_COMMON_GPU_INFO_H_ | 90 #endif // CONTENT_PUBLIC_COMMON_GPU_INFO_H_ |
| OLD | NEW |