| 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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 } | 213 } |
| 214 | 214 |
| 215 bool StructTraits<gpu::mojom::GpuInfo, gpu::GPUInfo>::Read( | 215 bool StructTraits<gpu::mojom::GpuInfo, gpu::GPUInfo>::Read( |
| 216 gpu::mojom::GpuInfoDataView data, | 216 gpu::mojom::GpuInfoDataView data, |
| 217 gpu::GPUInfo* out) { | 217 gpu::GPUInfo* out) { |
| 218 out->optimus = data.optimus(); | 218 out->optimus = data.optimus(); |
| 219 out->amd_switchable = data.amd_switchable(); | 219 out->amd_switchable = data.amd_switchable(); |
| 220 out->lenovo_dcute = data.lenovo_dcute(); | 220 out->lenovo_dcute = data.lenovo_dcute(); |
| 221 out->adapter_luid = data.adapter_luid(); | 221 out->adapter_luid = data.adapter_luid(); |
| 222 out->gl_reset_notification_strategy = data.gl_reset_notification_strategy(); | 222 out->gl_reset_notification_strategy = data.gl_reset_notification_strategy(); |
| 223 out->can_lose_context = data.can_lose_context(); | |
| 224 out->software_rendering = data.software_rendering(); | 223 out->software_rendering = data.software_rendering(); |
| 225 out->direct_rendering = data.direct_rendering(); | 224 out->direct_rendering = data.direct_rendering(); |
| 226 out->sandboxed = data.sandboxed(); | 225 out->sandboxed = data.sandboxed(); |
| 227 out->in_process_gpu = data.in_process_gpu(); | 226 out->in_process_gpu = data.in_process_gpu(); |
| 228 out->process_crash_count = data.process_crash_count(); | 227 out->process_crash_count = data.process_crash_count(); |
| 229 out->jpeg_decode_accelerator_supported = | 228 out->jpeg_decode_accelerator_supported = |
| 230 data.jpeg_decode_accelerator_supported(); | 229 data.jpeg_decode_accelerator_supported(); |
| 231 | 230 |
| 232 return data.ReadInitializationTime(&out->initialization_time) && | 231 return data.ReadInitializationTime(&out->initialization_time) && |
| 233 data.ReadDisplayLinkVersion(&out->display_link_version) && | 232 data.ReadDisplayLinkVersion(&out->display_link_version) && |
| (...skipping 20 matching lines...) Expand all Loading... |
| 254 data.ReadDxDiagnosticsInfoState(&out->dx_diagnostics_info_state) && | 253 data.ReadDxDiagnosticsInfoState(&out->dx_diagnostics_info_state) && |
| 255 data.ReadDxDiagnostics(&out->dx_diagnostics) && | 254 data.ReadDxDiagnostics(&out->dx_diagnostics) && |
| 256 #endif | 255 #endif |
| 257 data.ReadVideoDecodeAcceleratorCapabilities( | 256 data.ReadVideoDecodeAcceleratorCapabilities( |
| 258 &out->video_decode_accelerator_capabilities) && | 257 &out->video_decode_accelerator_capabilities) && |
| 259 data.ReadVideoEncodeAcceleratorSupportedProfiles( | 258 data.ReadVideoEncodeAcceleratorSupportedProfiles( |
| 260 &out->video_encode_accelerator_supported_profiles); | 259 &out->video_encode_accelerator_supported_profiles); |
| 261 } | 260 } |
| 262 | 261 |
| 263 } // namespace mojo | 262 } // namespace mojo |
| OLD | NEW |