blob: 19a34fc53be1c1bc8ebe97516d9f4a28fcf5f4d4 [file] [log] [blame]
// 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/mojom/gamma_ramp_rgb_entry_mojom_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