Avi Drissman | 3e1a26c | 2022-09-15 20:26:03 | [diff] [blame] | 1 | // Copyright 2021 The Chromium Authors |
Miguel Casas | a804eb19 | 2021-05-21 01:13:17 | [diff] [blame] | 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 "ui/gfx/mojom/hdr_static_metadata_mojom_traits.h" |
| 6 | |
| 7 | namespace mojo { |
| 8 | |
| 9 | bool StructTraits< |
| 10 | gfx::mojom::HDRStaticMetadataDataView, |
| 11 | gfx::HDRStaticMetadata>::Read(gfx::mojom::HDRStaticMetadataDataView data, |
| 12 | gfx::HDRStaticMetadata* output) { |
| 13 | output->max = data.max(); |
| 14 | output->max_avg = data.max_avg(); |
| 15 | output->min = data.min(); |
Sasha McIntosh | a51e344f | 2023-05-23 17:28:53 | [diff] [blame] | 16 | output->supported_eotf_mask = data.supported_eotf_mask(); |
Miguel Casas | a804eb19 | 2021-05-21 01:13:17 | [diff] [blame] | 17 | return true; |
| 18 | } |
| 19 | |
| 20 | } // namespace mojo |