8 #ifndef SkSerialProcs_DEFINED
9 #define SkSerialProcs_DEFINED
12 #include "include/private/base/SkAPI.h"
61 #if !defined(SK_LEGACY_DESERIAL_IMAGE_PROC)
66 std::optional<SkAlphaType>,
70 std::optional<SkAlphaType>,
88 void* fPictureCtx =
nullptr;
91 void* fImageCtx =
nullptr;
94 void* fTypefaceCtx =
nullptr;
99 void* fPictureCtx =
nullptr;
103 void* fImageCtx =
nullptr;
106 void* fSlugCtx =
nullptr;
109 void* fTypefaceCtx =
nullptr;
114 bool fAllowSkSL =
true;
SkAlphaType
Describes how to interpret the alpha component of a pixel.
Definition: SkAlphaType.h:26
sk_sp< SkImage >(*)(sk_sp< SkData >, std::optional< SkAlphaType >, void *ctx) SkDeserialImageFromDataProc
Definition: SkSerialProcs.h:71
sk_sp< sktext::gpu::Slug >(*)(SkReadBuffer &, void *ctx) SkSlugProc
Slugs are currently only deserializable with a GPU backend.
Definition: SkSerialProcs.h:78
SkData holds an immutable data buffer.
Definition: SkData.h:25
SkImage describes a two dimensional array of pixels to draw.
Definition: SkImage.h:270
SkPicture records drawing commands made to SkCanvas.
Definition: SkPicture.h:44
The SkTypeface class specifies the typeface and intrinsic style of a font.
Definition: SkTypeface.h:52
Shared pointer class to wrap classes that support a ref()/unref() interface.
Definition: SkRefCnt.h:220
Definition: SkCanvas.h:74
Definition: SkSerialProcs.h:97
Definition: SkSerialProcs.h:86