| Index: ui/display/mojo/gamma_ramp_rgb_entry_struct_traits.cc
|
| diff --git a/ui/display/mojo/gamma_ramp_rgb_entry_struct_traits.cc b/ui/display/mojo/gamma_ramp_rgb_entry_struct_traits.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..6ac8ecbcc638916b3ad71ee282d7c1563bc74d6e
|
| --- /dev/null
|
| +++ b/ui/display/mojo/gamma_ramp_rgb_entry_struct_traits.cc
|
| @@ -0,0 +1,20 @@
|
| +// 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
|
|
|