5#include "flutter/fml/logging.h"
41 static_cast<uint32_t
>(
info.colorType()),
42 static_cast<uint32_t
>(
info.alphaType()),
43 static_cast<bool>(
info.colorSpace())};
46 if (
info.colorSpace()) {
47 auto color_space_data =
info.colorSpace()->serialize();
50 stream.writeStream(&color_space_stream, color_space_data->size());
53 return stream.detachAsData();
62 if (metadata->has_color_space) {
68 auto image_size =
SkISize::Make(metadata->width, metadata->height);
70 image_size,
static_cast<SkColorType>(metadata->color_type),
71 static_cast<SkAlphaType>(metadata->alpha_type), color_space);
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
static sk_sp< SkColorSpace > Deserialize(const void *data, size_t length)
static sk_sp< SkData > MakeUninitialized(size_t length)
static sk_sp< SkData > MakeEmpty()
const SkImageInfo & imageInfo() const
void serialize(SkWStream *, SerializeBehavior=SerializeBehavior::kIncludeDataIfLocal) const
#define FML_CHECK(condition)
SK_API sk_sp< SkImage > RasterFromData(const SkImageInfo &info, sk_sp< SkData > pixels, size_t rowBytes)
sk_sp< const SkImage > image
sk_sp< SkData > SerializeTypefaceWithData(SkTypeface *typeface, void *ctx)
sk_sp< SkImage > DeserializeImageWithoutData(const void *data, size_t length, void *ctx)
sk_sp< SkTypeface > DeserializeTypefaceWithoutData(const void *data, size_t length, void *ctx)
sk_sp< SkData > SerializeTypefaceWithoutData(SkTypeface *typeface, void *ctx)
struct flutter::ImageMetaData __attribute__((packed))
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot data
sk_sp< SkData > SerializeImageWithoutData(SkImage *image, void *ctx)
static constexpr SkISize Make(int32_t w, int32_t h)
static SkImageInfo Make(int width, int height, SkColorType ct, SkAlphaType at)