blob: bd05adb915832f27d42e7221181b0f6d095a4ae0 [file] [log] [blame]
// Copyright 2016 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.
#ifndef UI_GFX_IPC_COLOR_GFX_PARAM_TRAITS_MACROS_H_
#define UI_GFX_IPC_COLOR_GFX_PARAM_TRAITS_MACROS_H_
#include "ipc/ipc_message_utils.h"
#include "ipc/param_traits_macros.h"
#include "ipc/ipc_message_macros.h"
#include "ui/gfx/color_space.h"
#include "ui/gfx/icc_profile.h"
#include "ui/gfx/ipc/color/gfx_ipc_color_export.h"
#undef IPC_MESSAGE_EXPORT
#define IPC_MESSAGE_EXPORT GFX_IPC_COLOR_EXPORT
IPC_ENUM_TRAITS_MAX_VALUE(gfx::ColorSpace::PrimaryID,
gfx::ColorSpace::PrimaryID::kMaxValue)
IPC_ENUM_TRAITS_MAX_VALUE(gfx::ColorSpace::TransferID,
gfx::ColorSpace::TransferID::kMaxValue)
IPC_ENUM_TRAITS_MAX_VALUE(gfx::ColorSpace::MatrixID,
gfx::ColorSpace::MatrixID::kMaxValue)
IPC_ENUM_TRAITS_MAX_VALUE(gfx::ColorSpace::RangeID,
gfx::ColorSpace::RangeID::kMaxValue)
IPC_STRUCT_TRAITS_BEGIN(skcms_Matrix3x3)
IPC_STRUCT_TRAITS_MEMBER(vals)
IPC_STRUCT_TRAITS_END()
IPC_STRUCT_TRAITS_BEGIN(skcms_TransferFunction)
IPC_STRUCT_TRAITS_MEMBER(a)
IPC_STRUCT_TRAITS_MEMBER(b)
IPC_STRUCT_TRAITS_MEMBER(c)
IPC_STRUCT_TRAITS_MEMBER(d)
IPC_STRUCT_TRAITS_MEMBER(e)
IPC_STRUCT_TRAITS_MEMBER(f)
IPC_STRUCT_TRAITS_MEMBER(g)
IPC_STRUCT_TRAITS_END()
#undef IPC_MESSAGE_EXPORT
#define IPC_MESSAGE_EXPORT
#endif // UI_GFX_IPC_COLOR_GFX_PARAM_TRAITS_MACROS_H_