chromium/ui/display/mojom/display_color_management_mojom_traits.h

// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef UI_DISPLAY_MOJOM_DISPLAY_COLOR_MANAGEMENT_MOJOM_TRAITS_H_
#define UI_DISPLAY_MOJOM_DISPLAY_COLOR_MANAGEMENT_MOJOM_TRAITS_H_

#include "skia/public/mojom/skcolorspace_mojom_traits.h"
#include "ui/display/mojom/display_color_management.mojom-shared.h"
#include "ui/display/mojom/gamma_ramp_rgb_entry.mojom-shared.h"
#include "ui/display/types/display_color_management.h"

namespace mojo {

// GammaCurve
template <>
struct StructTraits<::display::mojom::GammaCurveDataView,
                    ::display::GammaCurve> {};

// ColorCalibration
template <>
struct StructTraits<::display::mojom::ColorCalibrationDataView,
                    ::display::ColorCalibration> {};

// ColorTemperatureAdjustment
template <>
struct StructTraits<::display::mojom::ColorTemperatureAdjustmentDataView,
                    ::display::ColorTemperatureAdjustment> {};

// GammaAdjustment
template <>
struct StructTraits<::display::mojom::GammaAdjustmentDataView,
                    ::display::GammaAdjustment> {};

}  // namespace mojo

#endif  // UI_DISPLAY_MOJOM_DISPLAY_COLOR_MANAGEMENT_MOJOM_TRAITS_H_