chromium/ui/ozone/platform/wayland/host/wayland_zcr_color_space.cc

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

#include "ui/ozone/platform/wayland/host/wayland_zcr_color_space.h"

#include <chrome-color-management-client-protocol.h>
#include <cstdint>

#include "base/logging.h"
#include "base/notreached.h"
#include "base/strings/stringprintf.h"
#include "skia/ext/skcolorspace_trfn.h"
#include "ui/base/wayland/color_manager_util.h"
#include "ui/gfx/color_space.h"
#include "ui/ozone/platform/wayland/host/wayland_connection.h"
#include "ui/ozone/platform/wayland/wayland_utils.h"

namespace ui {

WaylandZcrColorSpace::WaylandZcrColorSpace(zcr_color_space_v1* color_space)
    :{}

WaylandZcrColorSpace::~WaylandZcrColorSpace() = default;

gfx::ColorSpace WaylandZcrColorSpace::GetPriorityInformationType() {}

// static
void WaylandZcrColorSpace::OnIccFile(void* data,
                                     zcr_color_space_v1* cs,
                                     int32_t icc,
                                     uint32_t icc_size) {}

// static deprecated
void WaylandZcrColorSpace::OnNames(void* data,
                                   zcr_color_space_v1* cs,
                                   uint32_t eotf,
                                   uint32_t chromaticity,
                                   uint32_t whitepoint) {}

// static deprecated
void WaylandZcrColorSpace::OnParams(void* data,
                                    zcr_color_space_v1* cs,
                                    uint32_t eotf,
                                    uint32_t primary_r_x,
                                    uint32_t primary_r_y,
                                    uint32_t primary_g_x,
                                    uint32_t primary_g_y,
                                    uint32_t primary_b_x,
                                    uint32_t primary_b_y,
                                    uint32_t whitepoint_x,
                                    uint32_t whitepoint_y) {}

// static
void WaylandZcrColorSpace::OnCompleteNames(void* data,
                                           zcr_color_space_v1* cs,
                                           uint32_t eotf,
                                           uint32_t chromaticity,
                                           uint32_t whitepoint,
                                           uint32_t matrix,
                                           uint32_t range) {}

// static
void WaylandZcrColorSpace::OnCompleteParams(void* data,
                                            zcr_color_space_v1* cs,
                                            uint32_t eotf,
                                            uint32_t matrix,
                                            uint32_t range,
                                            uint32_t primary_r_x,
                                            uint32_t primary_r_y,
                                            uint32_t primary_g_x,
                                            uint32_t primary_g_y,
                                            uint32_t primary_b_x,
                                            uint32_t primary_b_y,
                                            uint32_t whitepoint_x,
                                            uint32_t whitepoint_y) {}

// static
void WaylandZcrColorSpace::OnDone(void* data, zcr_color_space_v1* cs) {}

}  // namespace ui