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