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