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

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

Issue 2579873002: gpu: Add missing entries for GPUInfo mojom. (Closed)
Patch Set: test Created 4 years 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
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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 return data.ReadProfile(&out->profile) && 190 return data.ReadProfile(&out->profile) &&
191 data.ReadMaxResolution(&out->max_resolution) && 191 data.ReadMaxResolution(&out->max_resolution) &&
192 data.ReadMinResolution(&out->min_resolution); 192 data.ReadMinResolution(&out->min_resolution);
193 } 193 }
194 194
195 // static 195 // static
196 bool StructTraits<gpu::mojom::VideoDecodeAcceleratorCapabilitiesDataView, 196 bool StructTraits<gpu::mojom::VideoDecodeAcceleratorCapabilitiesDataView,
197 gpu::VideoDecodeAcceleratorCapabilities>:: 197 gpu::VideoDecodeAcceleratorCapabilities>::
198 Read(gpu::mojom::VideoDecodeAcceleratorCapabilitiesDataView data, 198 Read(gpu::mojom::VideoDecodeAcceleratorCapabilitiesDataView data,
199 gpu::VideoDecodeAcceleratorCapabilities* out) { 199 gpu::VideoDecodeAcceleratorCapabilities* out) {
200 if (!data.ReadSupportedProfiles(&out->supported_profiles))
201 return false;
200 out->flags = data.flags(); 202 out->flags = data.flags();
201 return true; 203 return true;
202 } 204 }
203 205
204 // static 206 // static
205 bool StructTraits<gpu::mojom::VideoEncodeAcceleratorSupportedProfileDataView, 207 bool StructTraits<gpu::mojom::VideoEncodeAcceleratorSupportedProfileDataView,
206 gpu::VideoEncodeAcceleratorSupportedProfile>:: 208 gpu::VideoEncodeAcceleratorSupportedProfile>::
207 Read(gpu::mojom::VideoEncodeAcceleratorSupportedProfileDataView data, 209 Read(gpu::mojom::VideoEncodeAcceleratorSupportedProfileDataView data,
208 gpu::VideoEncodeAcceleratorSupportedProfile* out) { 210 gpu::VideoEncodeAcceleratorSupportedProfile* out) {
209 out->max_framerate_numerator = data.max_framerate_numerator(); 211 out->max_framerate_numerator = data.max_framerate_numerator();
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 data.ReadDxDiagnosticsInfoState(&out->dx_diagnostics_info_state) && 261 data.ReadDxDiagnosticsInfoState(&out->dx_diagnostics_info_state) &&
260 data.ReadDxDiagnostics(&out->dx_diagnostics) && 262 data.ReadDxDiagnostics(&out->dx_diagnostics) &&
261 #endif 263 #endif
262 data.ReadVideoDecodeAcceleratorCapabilities( 264 data.ReadVideoDecodeAcceleratorCapabilities(
263 &out->video_decode_accelerator_capabilities) && 265 &out->video_decode_accelerator_capabilities) &&
264 data.ReadVideoEncodeAcceleratorSupportedProfiles( 266 data.ReadVideoEncodeAcceleratorSupportedProfiles(
265 &out->video_encode_accelerator_supported_profiles); 267 &out->video_encode_accelerator_supported_profiles);
266 } 268 }
267 269
268 } // namespace mojo 270 } // namespace mojo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698