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 "gpu/config/gpu_info.h" | 5 #include "gpu/config/gpu_info.h" |
6 | 6 |
7 namespace { | 7 namespace { |
8 | 8 |
9 void EnumerateGPUDevice(const gpu::GPUInfo::GPUDevice& device, | 9 void EnumerateGPUDevice(const gpu::GPUInfo::GPUDevice& device, |
10 gpu::GPUInfo::Enumerator* enumerator) { | 10 gpu::GPUInfo::Enumerator* enumerator) { |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 : optimus(false), | 58 : optimus(false), |
59 amd_switchable(false), | 59 amd_switchable(false), |
60 lenovo_dcute(false), | 60 lenovo_dcute(false), |
61 adapter_luid(0), | 61 adapter_luid(0), |
62 gl_reset_notification_strategy(0), | 62 gl_reset_notification_strategy(0), |
63 can_lose_context(false), | 63 can_lose_context(false), |
64 software_rendering(false), | 64 software_rendering(false), |
65 direct_rendering(true), | 65 direct_rendering(true), |
66 sandboxed(false), | 66 sandboxed(false), |
67 process_crash_count(0), | 67 process_crash_count(0), |
| 68 in_process_gpu(true), |
68 basic_info_state(kCollectInfoNone), | 69 basic_info_state(kCollectInfoNone), |
69 context_info_state(kCollectInfoNone), | 70 context_info_state(kCollectInfoNone), |
70 #if defined(OS_WIN) | 71 #if defined(OS_WIN) |
71 dx_diagnostics_info_state(kCollectInfoNone), | 72 dx_diagnostics_info_state(kCollectInfoNone), |
72 #endif | 73 #endif |
73 jpeg_decode_accelerator_supported(false) { | 74 jpeg_decode_accelerator_supported(false) { |
74 } | 75 } |
75 | 76 |
76 GPUInfo::~GPUInfo() { } | 77 GPUInfo::~GPUInfo() { } |
77 | 78 |
(...skipping 21 matching lines...) Expand all Loading... |
99 std::string gl_extensions; | 100 std::string gl_extensions; |
100 std::string gl_ws_vendor; | 101 std::string gl_ws_vendor; |
101 std::string gl_ws_version; | 102 std::string gl_ws_version; |
102 std::string gl_ws_extensions; | 103 std::string gl_ws_extensions; |
103 uint32 gl_reset_notification_strategy; | 104 uint32 gl_reset_notification_strategy; |
104 bool can_lose_context; | 105 bool can_lose_context; |
105 bool software_rendering; | 106 bool software_rendering; |
106 bool direct_rendering; | 107 bool direct_rendering; |
107 bool sandboxed; | 108 bool sandboxed; |
108 int process_crash_count; | 109 int process_crash_count; |
| 110 bool in_process_gpu; |
109 CollectInfoResult basic_info_state; | 111 CollectInfoResult basic_info_state; |
110 CollectInfoResult context_info_state; | 112 CollectInfoResult context_info_state; |
111 #if defined(OS_WIN) | 113 #if defined(OS_WIN) |
112 CollectInfoResult dx_diagnostics_info_state; | 114 CollectInfoResult dx_diagnostics_info_state; |
113 DxDiagNode dx_diagnostics; | 115 DxDiagNode dx_diagnostics; |
114 #endif | 116 #endif |
115 VideoDecodeAcceleratorSupportedProfiles | 117 VideoDecodeAcceleratorSupportedProfiles |
116 video_decode_accelerator_supported_profiles; | 118 video_decode_accelerator_supported_profiles; |
117 VideoEncodeAcceleratorSupportedProfiles | 119 VideoEncodeAcceleratorSupportedProfiles |
118 video_encode_accelerator_supported_profiles; | 120 video_encode_accelerator_supported_profiles; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 enumerator->AddString("glWsExtensions", gl_ws_extensions); | 161 enumerator->AddString("glWsExtensions", gl_ws_extensions); |
160 enumerator->AddInt( | 162 enumerator->AddInt( |
161 "glResetNotificationStrategy", | 163 "glResetNotificationStrategy", |
162 static_cast<int>(gl_reset_notification_strategy)); | 164 static_cast<int>(gl_reset_notification_strategy)); |
163 enumerator->AddBool("can_lose_context", can_lose_context); | 165 enumerator->AddBool("can_lose_context", can_lose_context); |
164 // TODO(kbr): add performance_stats. | 166 // TODO(kbr): add performance_stats. |
165 enumerator->AddBool("softwareRendering", software_rendering); | 167 enumerator->AddBool("softwareRendering", software_rendering); |
166 enumerator->AddBool("directRendering", direct_rendering); | 168 enumerator->AddBool("directRendering", direct_rendering); |
167 enumerator->AddBool("sandboxed", sandboxed); | 169 enumerator->AddBool("sandboxed", sandboxed); |
168 enumerator->AddInt("processCrashCount", process_crash_count); | 170 enumerator->AddInt("processCrashCount", process_crash_count); |
| 171 enumerator->AddBool("inProcessGpu", in_process_gpu); |
169 enumerator->AddInt("basicInfoState", basic_info_state); | 172 enumerator->AddInt("basicInfoState", basic_info_state); |
170 enumerator->AddInt("contextInfoState", context_info_state); | 173 enumerator->AddInt("contextInfoState", context_info_state); |
171 #if defined(OS_WIN) | 174 #if defined(OS_WIN) |
172 enumerator->AddInt("DxDiagnosticsInfoState", dx_diagnostics_info_state); | 175 enumerator->AddInt("DxDiagnosticsInfoState", dx_diagnostics_info_state); |
173 #endif | 176 #endif |
174 // TODO(kbr): add dx_diagnostics on Windows. | 177 // TODO(kbr): add dx_diagnostics on Windows. |
175 for (const auto& profile : video_decode_accelerator_supported_profiles) | 178 for (const auto& profile : video_decode_accelerator_supported_profiles) |
176 EnumerateVideoDecodeAcceleratorSupportedProfile(profile, enumerator); | 179 EnumerateVideoDecodeAcceleratorSupportedProfile(profile, enumerator); |
177 for (const auto& profile : video_encode_accelerator_supported_profiles) | 180 for (const auto& profile : video_encode_accelerator_supported_profiles) |
178 EnumerateVideoEncodeAcceleratorSupportedProfile(profile, enumerator); | 181 EnumerateVideoEncodeAcceleratorSupportedProfile(profile, enumerator); |
179 enumerator->AddBool("jpegDecodeAcceleratorSupported", | 182 enumerator->AddBool("jpegDecodeAcceleratorSupported", |
180 jpeg_decode_accelerator_supported); | 183 jpeg_decode_accelerator_supported); |
181 enumerator->EndAuxAttributes(); | 184 enumerator->EndAuxAttributes(); |
182 } | 185 } |
183 | 186 |
184 } // namespace gpu | 187 } // namespace gpu |
OLD | NEW |