Lines Matching refs:procs
134 sk_sp<SkPicture> SkPicture::MakeFromStream(SkStream* stream, const SkDeserialProcs* procs) { in MakeFromStream() argument
135 return MakeFromStream(stream, procs, nullptr); in MakeFromStream()
139 const SkDeserialProcs* procs) { in MakeFromData() argument
144 return MakeFromStream(&stream, procs, nullptr); in MakeFromData()
147 sk_sp<SkPicture> SkPicture::MakeFromData(const SkData* data, const SkDeserialProcs* procs) { in MakeFromData() argument
152 return MakeFromStream(&stream, procs, nullptr); in MakeFromData()
162 SkDeserialProcs procs; in MakeFromStream() local
164 procs = *procsPtr; in MakeFromStream()
172 SkPictureData::CreateFromStream(stream, info, procs, typefaces)); in MakeFromStream()
177 if (!stream->readS32(&ssize) || ssize >= 0 || !procs.fPictureProc) { in MakeFromStream()
185 return procs.fPictureProc(data->data(), size, procs.fPictureCtx); in MakeFromStream()
201 const SkDeserialProcs& procs = buffer.getDeserialProcs(); in MakeFromBuffer() local
202 if (!procs.fPictureProc) { in MakeFromBuffer()
206 return procs.fPictureProc(buffer.skip(size), size, procs.fPictureCtx); in MakeFromBuffer()
225 void SkPicture::serialize(SkWStream* stream, const SkSerialProcs* procs) const { in serialize()
226 this->serialize(stream, procs, nullptr); in serialize()
229 sk_sp<SkData> SkPicture::serialize(const SkSerialProcs* procs) const { in serialize()
231 this->serialize(&stream, procs, nullptr); in serialize()
235 static sk_sp<SkData> custom_serialize(const SkPicture* picture, const SkSerialProcs& procs) { in custom_serialize() argument
236 if (procs.fPictureProc) { in custom_serialize()
237 auto data = procs.fPictureProc(const_cast<SkPicture*>(picture), procs.fPictureCtx); in custom_serialize()
262 SkSerialProcs procs; in serialize() local
264 procs = *procsPtr; in serialize()
270 if (auto custom = custom_serialize(this, procs)) { in serialize()
285 data->serialize(stream, procs, typefaceSet); in serialize()