• Home
  • Raw
  • Download

Lines Matching refs:procs

137 sk_sp<SkPicture> SkPicture::MakeFromStream(SkStream* stream, const SkDeserialProcs* procs) {  in MakeFromStream()  argument
138 return MakeFromStream(stream, procs, nullptr); in MakeFromStream()
142 const SkDeserialProcs* procs) { in MakeFromData() argument
147 return MakeFromStream(&stream, procs, nullptr); in MakeFromData()
150 sk_sp<SkPicture> SkPicture::MakeFromData(const SkData* data, const SkDeserialProcs* procs) { in MakeFromData() argument
155 return MakeFromStream(&stream, procs, nullptr); in MakeFromData()
165 SkDeserialProcs procs; in MakeFromStream() local
167 procs = *procsPtr; in MakeFromStream()
175 SkPictureData::CreateFromStream(stream, info, procs, typefaces)); in MakeFromStream()
180 if (!stream->readS32(&ssize) || ssize >= 0 || !procs.fPictureProc) { in MakeFromStream()
188 return procs.fPictureProc(data->data(), size, procs.fPictureCtx); in MakeFromStream()
204 const SkDeserialProcs& procs = buffer.getDeserialProcs(); in MakeFromBuffer() local
205 if (!procs.fPictureProc) { in MakeFromBuffer()
209 return procs.fPictureProc(buffer.skip(size), size, procs.fPictureCtx); in MakeFromBuffer()
228 void SkPicture::serialize(SkWStream* stream, const SkSerialProcs* procs) const { in serialize()
229 this->serialize(stream, procs, nullptr); in serialize()
232 sk_sp<SkData> SkPicture::serialize(const SkSerialProcs* procs) const { in serialize()
234 this->serialize(&stream, procs, nullptr); in serialize()
238 static sk_sp<SkData> custom_serialize(const SkPicture* picture, const SkSerialProcs& procs) { in custom_serialize() argument
239 if (procs.fPictureProc) { in custom_serialize()
240 auto data = procs.fPictureProc(const_cast<SkPicture*>(picture), procs.fPictureCtx); in custom_serialize()
268 SkSerialProcs procs; in serialize() local
270 procs = *procsPtr; in serialize()
276 if (auto custom = custom_serialize(this, procs)) { in serialize()
291 data->serialize(stream, procs, typefaceSet, textBlobsOnly); in serialize()