Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(76)

Side by Side Diff: gpu/ipc/common/gpu_info_struct_traits.cc

Issue 2261893003: Remove GpuInfo::can_lose_context. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gpu/ipc/common/gpu_info_struct_traits.h ('k') | gpu/ipc/common/gpu_param_traits_macros.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « gpu/ipc/common/gpu_info_struct_traits.h ('k') | gpu/ipc/common/gpu_param_traits_macros.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698