chromium/third_party/blink/renderer/bindings/core/v8/serialization/serialized_color_params.cc

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

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/351564777): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

#include "third_party/blink/renderer/bindings/core/v8/serialization/serialized_color_params.h"

#include "build/build_config.h"
#include "third_party/blink/renderer/platform/graphics/canvas_color_params.h"

namespace blink {

namespace {

SerializedPredefinedColorSpace SerializeColorSpace(
    PredefinedColorSpace color_space) {}

PredefinedColorSpace DeserializeColorSpace(
    SerializedPredefinedColorSpace serialized_color_space) {}

}  // namespace

////////////////////////////////////////////////////////////////////////////////
// SerializedImageDataSettings

SerializedImageDataSettings::SerializedImageDataSettings(
    PredefinedColorSpace color_space,
    ImageDataStorageFormat storage_format)
    :{}

SerializedImageDataSettings::SerializedImageDataSettings(
    SerializedPredefinedColorSpace color_space,
    SerializedImageDataStorageFormat storage_format)
    :{}

PredefinedColorSpace SerializedImageDataSettings::GetColorSpace() const {}

ImageDataStorageFormat SerializedImageDataSettings::GetStorageFormat() const {}

ImageDataSettings* SerializedImageDataSettings::GetImageDataSettings() const {}

////////////////////////////////////////////////////////////////////////////////
// SerializedImageBitmapSettings

SerializedImageBitmapSettings::SerializedImageBitmapSettings() = default;

SerializedImageBitmapSettings::SerializedImageBitmapSettings(
    SkImageInfo info,
    ImageOrientationEnum image_orientation)
    :{}

SerializedImageBitmapSettings::SerializedImageBitmapSettings(
    SerializedPredefinedColorSpace color_space,
    const Vector<double>& sk_color_space,
    SerializedPixelFormat pixel_format,
    SerializedOpacityMode opacity_mode,
    uint32_t is_premultiplied,
    SerializedImageOrientation image_orientation)
    :{}

SkImageInfo SerializedImageBitmapSettings::GetSkImageInfo(
    uint32_t width,
    uint32_t height) const {}

ImageOrientationEnum SerializedImageBitmapSettings::GetImageOrientation()
    const {}

}  // namespace blink