• Home
  • Raw
  • Download

Lines Matching refs:procs

138 sk_sp<SkPicture> SkPicture::MakeFromStream(SkStream* stream, const SkDeserialProcs* procs) {  in MakeFromStream()  argument
139 return MakeFromStream(stream, procs, nullptr); in MakeFromStream()
143 const SkDeserialProcs* procs) { in MakeFromData() argument
148 return MakeFromStream(&stream, procs, nullptr); in MakeFromData()
151 sk_sp<SkPicture> SkPicture::MakeFromData(const SkData* data, const SkDeserialProcs* procs) { in MakeFromData() argument
156 return MakeFromStream(&stream, procs, nullptr); in MakeFromData()
166 SkDeserialProcs procs; in MakeFromStream() local
168 procs = *procsPtr; in MakeFromStream()
176 SkPictureData::CreateFromStream(stream, info, procs, typefaces)); in MakeFromStream()
181 if (!stream->readS32(&ssize) || ssize >= 0 || !procs.fPictureProc) { in MakeFromStream()
189 return procs.fPictureProc(data->data(), size, procs.fPictureCtx); in MakeFromStream()
205 const SkDeserialProcs& procs = buffer.getDeserialProcs(); in MakeFromBuffer() local
206 if (!procs.fPictureProc) { in MakeFromBuffer()
210 return procs.fPictureProc(buffer.skip(size), size, procs.fPictureCtx); in MakeFromBuffer()
229 void SkPicture::serialize(SkWStream* stream, const SkSerialProcs* procs) const { in serialize()
230 this->serialize(stream, procs, nullptr); in serialize()
233 sk_sp<SkData> SkPicture::serialize(const SkSerialProcs* procs) const { in serialize()
235 this->serialize(&stream, procs, nullptr); in serialize()
239 static sk_sp<SkData> custom_serialize(const SkPicture* picture, const SkSerialProcs& procs) { in custom_serialize() argument
240 if (procs.fPictureProc) { in custom_serialize()
241 auto data = procs.fPictureProc(const_cast<SkPicture*>(picture), procs.fPictureCtx); in custom_serialize()
269 SkSerialProcs procs; in serialize() local
271 procs = *procsPtr; in serialize()
277 if (auto custom = custom_serialize(this, procs)) { in serialize()
292 data->serialize(stream, procs, typefaceSet, textBlobsOnly); in serialize()