chromium/ui/ozone/platform/wayland/test/mock_wayland_zcr_color_manager.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/test/mock_wayland_zcr_color_manager.h"

#include <chrome-color-management-server-protocol.h>

#include <cstdint>
#include <iterator>

#include "base/not_fatal_until.h"
#include "base/ranges/algorithm.h"
#include "ui/base/wayland/color_manager_util.h"
#include "ui/gfx/color_space.h"
#include "ui/ozone/platform/wayland/test/global_object.h"
#include "ui/ozone/platform/wayland/test/server_object.h"
#include "ui/ozone/platform/wayland/test/test_wayland_zcr_color_management_output.h"
#include "ui/ozone/platform/wayland/test/test_wayland_zcr_color_management_surface.h"
#include "ui/ozone/platform/wayland/test/test_wayland_zcr_color_space.h"
#include "ui/ozone/platform/wayland/test/test_wayland_zcr_color_space_creator.h"

namespace wl {

namespace {

constexpr uint32_t kZcrColorManagerVersion =;

void CreateColorSpaceFromIcc(wl_client* client,
                             wl_resource* resource,
                             uint32_t id,
                             int32_t fd) {}

void CreateColorSpaceFromNames(wl_client* client,
                               wl_resource* resource,
                               uint32_t id,
                               uint32_t eotf,
                               uint32_t chromaticity,
                               uint32_t whitepoint) {}

void CreateColorSpaceFromParams(wl_client* client,
                                wl_resource* resource,
                                uint32_t id,
                                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 GetColorManagementOutput(wl_client* client,
                              wl_resource* resource,
                              uint32_t id,
                              wl_resource* output) {}

void GetColorManagementSurface(wl_client* client,
                               wl_resource* resource,
                               uint32_t id,
                               wl_resource* output) {}

}  // namespace

const struct zcr_color_manager_v1_interface kMockZcrColorManagerV1Impl =;

MockZcrColorManagerV1::MockZcrColorManagerV1()
    :{}

MockZcrColorManagerV1::~MockZcrColorManagerV1() {}

void MockZcrColorManagerV1::StoreZcrColorManagementOutput(
    TestZcrColorManagementOutputV1* params) {}

void MockZcrColorManagerV1::StoreZcrColorManagementSurface(
    TestZcrColorManagementSurfaceV1* params) {}

void MockZcrColorManagerV1::StoreZcrColorSpace(TestZcrColorSpaceV1* params) {}

void MockZcrColorManagerV1::OnZcrColorManagementOutputDestroyed(
    TestZcrColorManagementOutputV1* params) {}

void MockZcrColorManagerV1::OnZcrColorManagementSurfaceDestroyed(
    TestZcrColorManagementSurfaceV1* params) {}

void MockZcrColorManagerV1::OnZcrColorSpaceDestroyed(
    TestZcrColorSpaceV1* params) {}

}  // namespace wl