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

Side by Side Diff: content/common/video_capture_struct_traits.cc

Issue 2405423002: [Video Capture Service] Move Mojo structs and enums to media/capture/mojo (Closed)
Patch Set: mcasas' comments Created 4 years, 2 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "content/common/video_capture_struct_traits.h"
6
7 #include "services/video_capture/public/interfaces/video_capture_device_proxy_tr aits.h"
8 #include "services/video_capture/public/interfaces/video_capture_format_traits.h "
9
10 namespace mojo {
11
12 // static
13 bool StructTraits<content::mojom::VideoCaptureParamsDataView,
14 media::VideoCaptureParams>::
15 Read(content::mojom::VideoCaptureParamsDataView data,
16 media::VideoCaptureParams* out) {
17 if (!data.ReadRequestedFormat(&out->requested_format))
18 return false;
19 if (!data.ReadResolutionChangePolicy(&out->resolution_change_policy))
20 return false;
21 if (!data.ReadPowerLineFrequency(&out->power_line_frequency))
22 return false;
23 return true;
24 }
25
26 } // namespace mojo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698