| 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 #include <stdint.h> | 5 #include <stdint.h> |
| 6 | 6 |
| 7 #include "gpu/config/gpu_info.h" | 7 #include "gpu/config/gpu_info.h" |
| 8 | 8 |
| 9 namespace { | 9 namespace { |
| 10 | 10 |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 std::string gl_ws_version; | 127 std::string gl_ws_version; |
| 128 std::string gl_ws_extensions; | 128 std::string gl_ws_extensions; |
| 129 uint32_t gl_reset_notification_strategy; | 129 uint32_t gl_reset_notification_strategy; |
| 130 bool software_rendering; | 130 bool software_rendering; |
| 131 bool direct_rendering; | 131 bool direct_rendering; |
| 132 bool sandboxed; | 132 bool sandboxed; |
| 133 int process_crash_count; | 133 int process_crash_count; |
| 134 bool in_process_gpu; | 134 bool in_process_gpu; |
| 135 bool passthrough_cmd_decoder; | 135 bool passthrough_cmd_decoder; |
| 136 bool supports_overlays; | 136 bool supports_overlays; |
| 137 bool hdr; |
| 137 CollectInfoResult basic_info_state; | 138 CollectInfoResult basic_info_state; |
| 138 CollectInfoResult context_info_state; | 139 CollectInfoResult context_info_state; |
| 139 #if defined(OS_WIN) | 140 #if defined(OS_WIN) |
| 140 CollectInfoResult dx_diagnostics_info_state; | 141 CollectInfoResult dx_diagnostics_info_state; |
| 141 DxDiagNode dx_diagnostics; | 142 DxDiagNode dx_diagnostics; |
| 142 #endif | 143 #endif |
| 143 VideoDecodeAcceleratorCapabilities video_decode_accelerator_capabilities; | 144 VideoDecodeAcceleratorCapabilities video_decode_accelerator_capabilities; |
| 144 VideoEncodeAcceleratorSupportedProfiles | 145 VideoEncodeAcceleratorSupportedProfiles |
| 145 video_encode_accelerator_supported_profiles; | 146 video_encode_accelerator_supported_profiles; |
| 146 bool jpeg_decode_accelerator_supported; | 147 bool jpeg_decode_accelerator_supported; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 "glResetNotificationStrategy", | 187 "glResetNotificationStrategy", |
| 187 static_cast<int>(gl_reset_notification_strategy)); | 188 static_cast<int>(gl_reset_notification_strategy)); |
| 188 // TODO(kbr): add performance_stats. | 189 // TODO(kbr): add performance_stats. |
| 189 enumerator->AddBool("softwareRendering", software_rendering); | 190 enumerator->AddBool("softwareRendering", software_rendering); |
| 190 enumerator->AddBool("directRendering", direct_rendering); | 191 enumerator->AddBool("directRendering", direct_rendering); |
| 191 enumerator->AddBool("sandboxed", sandboxed); | 192 enumerator->AddBool("sandboxed", sandboxed); |
| 192 enumerator->AddInt("processCrashCount", process_crash_count); | 193 enumerator->AddInt("processCrashCount", process_crash_count); |
| 193 enumerator->AddBool("inProcessGpu", in_process_gpu); | 194 enumerator->AddBool("inProcessGpu", in_process_gpu); |
| 194 enumerator->AddBool("passthroughCmdDecoder", passthrough_cmd_decoder); | 195 enumerator->AddBool("passthroughCmdDecoder", passthrough_cmd_decoder); |
| 195 enumerator->AddBool("supportsOverlays", supports_overlays); | 196 enumerator->AddBool("supportsOverlays", supports_overlays); |
| 197 enumerator->AddBool("hdr", hdr); |
| 196 enumerator->AddInt("basicInfoState", basic_info_state); | 198 enumerator->AddInt("basicInfoState", basic_info_state); |
| 197 enumerator->AddInt("contextInfoState", context_info_state); | 199 enumerator->AddInt("contextInfoState", context_info_state); |
| 198 #if defined(OS_WIN) | 200 #if defined(OS_WIN) |
| 199 enumerator->AddInt("DxDiagnosticsInfoState", dx_diagnostics_info_state); | 201 enumerator->AddInt("DxDiagnosticsInfoState", dx_diagnostics_info_state); |
| 200 #endif | 202 #endif |
| 201 // TODO(kbr): add dx_diagnostics on Windows. | 203 // TODO(kbr): add dx_diagnostics on Windows. |
| 202 enumerator->AddInt("videoDecodeAcceleratorFlags", | 204 enumerator->AddInt("videoDecodeAcceleratorFlags", |
| 203 video_decode_accelerator_capabilities.flags); | 205 video_decode_accelerator_capabilities.flags); |
| 204 for (const auto& profile : | 206 for (const auto& profile : |
| 205 video_decode_accelerator_capabilities.supported_profiles) | 207 video_decode_accelerator_capabilities.supported_profiles) |
| 206 EnumerateVideoDecodeAcceleratorSupportedProfile(profile, enumerator); | 208 EnumerateVideoDecodeAcceleratorSupportedProfile(profile, enumerator); |
| 207 for (const auto& profile : video_encode_accelerator_supported_profiles) | 209 for (const auto& profile : video_encode_accelerator_supported_profiles) |
| 208 EnumerateVideoEncodeAcceleratorSupportedProfile(profile, enumerator); | 210 EnumerateVideoEncodeAcceleratorSupportedProfile(profile, enumerator); |
| 209 enumerator->AddBool("jpegDecodeAcceleratorSupported", | 211 enumerator->AddBool("jpegDecodeAcceleratorSupported", |
| 210 jpeg_decode_accelerator_supported); | 212 jpeg_decode_accelerator_supported); |
| 211 #if defined(USE_X11) && !defined(OS_CHROMEOS) | 213 #if defined(USE_X11) && !defined(OS_CHROMEOS) |
| 212 enumerator->AddInt64("systemVisual", system_visual); | 214 enumerator->AddInt64("systemVisual", system_visual); |
| 213 enumerator->AddInt64("rgbaVisual", rgba_visual); | 215 enumerator->AddInt64("rgbaVisual", rgba_visual); |
| 214 #endif | 216 #endif |
| 215 enumerator->EndAuxAttributes(); | 217 enumerator->EndAuxAttributes(); |
| 216 } | 218 } |
| 217 | 219 |
| 218 } // namespace gpu | 220 } // namespace gpu |
| OLD | NEW |