Chromium Code Reviews| 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 115 std::string gl_ws_vendor; | 115 std::string gl_ws_vendor; |
| 116 std::string gl_ws_version; | 116 std::string gl_ws_version; |
| 117 std::string gl_ws_extensions; | 117 std::string gl_ws_extensions; |
| 118 uint32_t gl_reset_notification_strategy; | 118 uint32_t gl_reset_notification_strategy; |
| 119 bool software_rendering; | 119 bool software_rendering; |
| 120 bool direct_rendering; | 120 bool direct_rendering; |
| 121 bool sandboxed; | 121 bool sandboxed; |
| 122 int process_crash_count; | 122 int process_crash_count; |
| 123 bool in_process_gpu; | 123 bool in_process_gpu; |
| 124 bool passthrough_cmd_decoder; | 124 bool passthrough_cmd_decoder; |
| 125 bool supports_overlays; | |
| 125 CollectInfoResult basic_info_state; | 126 CollectInfoResult basic_info_state; |
| 126 CollectInfoResult context_info_state; | 127 CollectInfoResult context_info_state; |
| 127 #if defined(OS_WIN) | 128 #if defined(OS_WIN) |
| 128 CollectInfoResult dx_diagnostics_info_state; | 129 CollectInfoResult dx_diagnostics_info_state; |
| 129 DxDiagNode dx_diagnostics; | 130 DxDiagNode dx_diagnostics; |
| 130 #endif | 131 #endif |
| 131 VideoDecodeAcceleratorCapabilities video_decode_accelerator_capabilities; | 132 VideoDecodeAcceleratorCapabilities video_decode_accelerator_capabilities; |
| 132 VideoEncodeAcceleratorSupportedProfiles | 133 VideoEncodeAcceleratorSupportedProfiles |
| 133 video_encode_accelerator_supported_profiles; | 134 video_encode_accelerator_supported_profiles; |
| 134 bool jpeg_decode_accelerator_supported; | 135 bool jpeg_decode_accelerator_supported; |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 173 enumerator->AddInt( | 174 enumerator->AddInt( |
| 174 "glResetNotificationStrategy", | 175 "glResetNotificationStrategy", |
| 175 static_cast<int>(gl_reset_notification_strategy)); | 176 static_cast<int>(gl_reset_notification_strategy)); |
| 176 // TODO(kbr): add performance_stats. | 177 // TODO(kbr): add performance_stats. |
| 177 enumerator->AddBool("softwareRendering", software_rendering); | 178 enumerator->AddBool("softwareRendering", software_rendering); |
| 178 enumerator->AddBool("directRendering", direct_rendering); | 179 enumerator->AddBool("directRendering", direct_rendering); |
| 179 enumerator->AddBool("sandboxed", sandboxed); | 180 enumerator->AddBool("sandboxed", sandboxed); |
| 180 enumerator->AddInt("processCrashCount", process_crash_count); | 181 enumerator->AddInt("processCrashCount", process_crash_count); |
| 181 enumerator->AddBool("inProcessGpu", in_process_gpu); | 182 enumerator->AddBool("inProcessGpu", in_process_gpu); |
| 182 enumerator->AddBool("passthroughCmdDecoder", passthrough_cmd_decoder); | 183 enumerator->AddBool("passthroughCmdDecoder", passthrough_cmd_decoder); |
| 184 enumerator->AddInt("supportsOverlays", supports_overlays); | |
|
Zhenyao Mo
2017/03/31 20:02:21
Why not AddBool?
| |
| 183 enumerator->AddInt("basicInfoState", basic_info_state); | 185 enumerator->AddInt("basicInfoState", basic_info_state); |
| 184 enumerator->AddInt("contextInfoState", context_info_state); | 186 enumerator->AddInt("contextInfoState", context_info_state); |
| 185 #if defined(OS_WIN) | 187 #if defined(OS_WIN) |
| 186 enumerator->AddInt("DxDiagnosticsInfoState", dx_diagnostics_info_state); | 188 enumerator->AddInt("DxDiagnosticsInfoState", dx_diagnostics_info_state); |
| 187 #endif | 189 #endif |
| 188 // TODO(kbr): add dx_diagnostics on Windows. | 190 // TODO(kbr): add dx_diagnostics on Windows. |
| 189 enumerator->AddInt("videoDecodeAcceleratorFlags", | 191 enumerator->AddInt("videoDecodeAcceleratorFlags", |
| 190 video_decode_accelerator_capabilities.flags); | 192 video_decode_accelerator_capabilities.flags); |
| 191 for (const auto& profile : | 193 for (const auto& profile : |
| 192 video_decode_accelerator_capabilities.supported_profiles) | 194 video_decode_accelerator_capabilities.supported_profiles) |
| 193 EnumerateVideoDecodeAcceleratorSupportedProfile(profile, enumerator); | 195 EnumerateVideoDecodeAcceleratorSupportedProfile(profile, enumerator); |
| 194 for (const auto& profile : video_encode_accelerator_supported_profiles) | 196 for (const auto& profile : video_encode_accelerator_supported_profiles) |
| 195 EnumerateVideoEncodeAcceleratorSupportedProfile(profile, enumerator); | 197 EnumerateVideoEncodeAcceleratorSupportedProfile(profile, enumerator); |
| 196 enumerator->AddBool("jpegDecodeAcceleratorSupported", | 198 enumerator->AddBool("jpegDecodeAcceleratorSupported", |
| 197 jpeg_decode_accelerator_supported); | 199 jpeg_decode_accelerator_supported); |
| 198 #if defined(USE_X11) && !defined(OS_CHROMEOS) | 200 #if defined(USE_X11) && !defined(OS_CHROMEOS) |
| 199 enumerator->AddInt64("systemVisual", system_visual); | 201 enumerator->AddInt64("systemVisual", system_visual); |
| 200 enumerator->AddInt64("rgbaVisual", rgba_visual); | 202 enumerator->AddInt64("rgbaVisual", rgba_visual); |
| 201 #endif | 203 #endif |
| 202 enumerator->EndAuxAttributes(); | 204 enumerator->EndAuxAttributes(); |
| 203 } | 205 } |
| 204 | 206 |
| 205 } // namespace gpu | 207 } // namespace gpu |
| OLD | NEW |