| // Copyright 2017 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #include "ui/display/mojo/gamma_ramp_rgb_entry_struct_traits.h" |
| |
| namespace mojo { |
| |
| // static |
| bool StructTraits<display::mojom::GammaRampRGBEntryDataView, |
| display::GammaRampRGBEntry>:: |
| Read(display::mojom::GammaRampRGBEntryDataView data, |
| display::GammaRampRGBEntry* out) { |
| out->r = data.r(); |
| out->g = data.g(); |
| out->b = data.b(); |
| return true; |
| } |
| |
| } // namespace mojo |