OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/ipc/common/gpu_info_struct_traits.h" | 5 #include "gpu/ipc/common/gpu_info_struct_traits.h" |
6 | 6 |
7 #include "ipc/ipc_message_utils.h" | 7 #include "ipc/ipc_message_utils.h" |
8 #include "mojo/common/common_custom_types_struct_traits.h" | 8 #include "mojo/common/common_custom_types_struct_traits.h" |
9 | 9 |
10 namespace mojo { | 10 namespace mojo { |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 gpu::mojom::GpuInfoDataView data, | 238 gpu::mojom::GpuInfoDataView data, |
239 gpu::GPUInfo* out) { | 239 gpu::GPUInfo* out) { |
240 out->optimus = data.optimus(); | 240 out->optimus = data.optimus(); |
241 out->amd_switchable = data.amd_switchable(); | 241 out->amd_switchable = data.amd_switchable(); |
242 out->gl_reset_notification_strategy = data.gl_reset_notification_strategy(); | 242 out->gl_reset_notification_strategy = data.gl_reset_notification_strategy(); |
243 out->software_rendering = data.software_rendering(); | 243 out->software_rendering = data.software_rendering(); |
244 out->direct_rendering = data.direct_rendering(); | 244 out->direct_rendering = data.direct_rendering(); |
245 out->sandboxed = data.sandboxed(); | 245 out->sandboxed = data.sandboxed(); |
246 out->in_process_gpu = data.in_process_gpu(); | 246 out->in_process_gpu = data.in_process_gpu(); |
247 out->passthrough_cmd_decoder = data.passthrough_cmd_decoder(); | 247 out->passthrough_cmd_decoder = data.passthrough_cmd_decoder(); |
| 248 out->supports_overlays = data.supports_overlays(); |
248 out->process_crash_count = data.process_crash_count(); | 249 out->process_crash_count = data.process_crash_count(); |
249 out->jpeg_decode_accelerator_supported = | 250 out->jpeg_decode_accelerator_supported = |
250 data.jpeg_decode_accelerator_supported(); | 251 data.jpeg_decode_accelerator_supported(); |
251 | 252 |
252 #if defined(USE_X11) && !defined(OS_CHROMEOS) | 253 #if defined(USE_X11) && !defined(OS_CHROMEOS) |
253 out->system_visual = data.system_visual(); | 254 out->system_visual = data.system_visual(); |
254 out->rgba_visual = data.rgba_visual(); | 255 out->rgba_visual = data.rgba_visual(); |
255 #endif | 256 #endif |
256 | 257 |
257 return data.ReadInitializationTime(&out->initialization_time) && | 258 return data.ReadInitializationTime(&out->initialization_time) && |
(...skipping 20 matching lines...) Expand all Loading... |
278 data.ReadDxDiagnosticsInfoState(&out->dx_diagnostics_info_state) && | 279 data.ReadDxDiagnosticsInfoState(&out->dx_diagnostics_info_state) && |
279 data.ReadDxDiagnostics(&out->dx_diagnostics) && | 280 data.ReadDxDiagnostics(&out->dx_diagnostics) && |
280 #endif | 281 #endif |
281 data.ReadVideoDecodeAcceleratorCapabilities( | 282 data.ReadVideoDecodeAcceleratorCapabilities( |
282 &out->video_decode_accelerator_capabilities) && | 283 &out->video_decode_accelerator_capabilities) && |
283 data.ReadVideoEncodeAcceleratorSupportedProfiles( | 284 data.ReadVideoEncodeAcceleratorSupportedProfiles( |
284 &out->video_encode_accelerator_supported_profiles); | 285 &out->video_encode_accelerator_supported_profiles); |
285 } | 286 } |
286 | 287 |
287 } // namespace mojo | 288 } // namespace mojo |
OLD | NEW |