#ifdef UNSAFE_BUFFERS_BUILD
#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) { … }
}
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() = 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 { … }
}