1137 {
1138 struct DeserializationContext {
1140#if defined(SK_GRAPHITE)
1142#endif
1143 } ctx {
1145#if defined(SK_GRAPHITE)
1147#endif
1148 };
1149
1155
1157 DeserializationContext* context = reinterpret_cast<DeserializationContext*>(ctx);
1158
1159 if (context->fDirectContext) {
1161 }
1162 }
1164 };
1166
1167
1168
1172 };
1173
1174
1178 }
1180 if (!pic) {
1182 }
1187}
static GrDirectContext * GrAsDirectContext(GrContext_Base *base)
static Result Fatal(const char *fmt,...) SK_PRINTF_LIKE(1
SkISize size() const override
void clipRect(const SkRect &rect, SkClipOp op, bool doAntiAlias)
virtual GrRecordingContext * recordingContext() const
virtual skgpu::graphite::Recorder * recorder() const
void drawPicture(const SkPicture *picture)
static sk_sp< SkData > MakeWithoutCopy(const void *data, size_t length)
sk_sp< SkImage > makeRasterImage(GrDirectContext *, CachingHint cachingHint=kDisallow_CachingHint) const
static sk_sp< SkPicture > MakeFromStream(SkStream *stream, const SkDeserialProcs *procs=nullptr)
static std::unique_ptr< SkStreamAsset > MakeFromFile(const char path[])
const char * c_str() const
static sk_sp< SkTypeface > MakeDeserialize(SkStream *, sk_sp< SkFontMgr > lastResortMgr)
SK_API sk_sp< SkImage > DeferredFromEncodedData(sk_sp< SkData > encoded, std::optional< SkAlphaType > alphaType=std::nullopt)
SK_API sk_sp< SkImage > TextureFromImage(GrDirectContext *, const SkImage *, skgpu::Mipmapped=skgpu::Mipmapped::kNo, skgpu::Budgeted=skgpu::Budgeted::kYes)
sk_sp< const SkImage > image
SkDeserialTypefaceProc fTypefaceProc
SkDeserialImageProc fImageProc
static constexpr SkRect MakeWH(float w, float h)
std::shared_ptr< const fml::Mapping > data