#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() { … }
void WaylandZcrColorSpace::OnIccFile(void* data,
zcr_color_space_v1* cs,
int32_t icc,
uint32_t icc_size) { … }
void WaylandZcrColorSpace::OnNames(void* data,
zcr_color_space_v1* cs,
uint32_t eotf,
uint32_t chromaticity,
uint32_t whitepoint) { … }
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) { … }
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) { … }
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) { … }
void WaylandZcrColorSpace::OnDone(void* data, zcr_color_space_v1* cs) { … }
}