Flutter Engine
The Flutter Engine
|
Functions | |
SK_API sk_sp< SkDocument > | Make (SkWStream *dst, const SkSerialProcs *=nullptr, std::function< void(const SkPicture *)> onEndPage=nullptr) |
SK_API int | ReadPageCount (SkStreamSeekable *src) |
SK_API bool | Read (SkStreamSeekable *src, SkDocumentPage *dstArray, int dstArrayCount, const SkDeserialProcs *=nullptr) |
bool | ReadPageSizes (SkStreamSeekable *stream, SkDocumentPage *dstArray, int dstArrayCount) |
sk_sp< SkDocument > SkMultiPictureDocument::Make | ( | SkWStream * | dst, |
const SkSerialProcs * | procs = nullptr , |
||
std::function< void(const SkPicture *)> | onEndPage = nullptr |
||
) |
Writes into a file format that is similar to SkPicture::serialize() Accepts a callback for endPage behavior
Definition at line 150 of file SkMultiPictureDocument.cpp.
bool SkMultiPictureDocument::Read | ( | SkStreamSeekable * | src, |
SkDocumentPage * | dstArray, | ||
int | dstArrayCount, | ||
const SkDeserialProcs * | procs = nullptr |
||
) |
Read the SkMultiPictureDocument into the provided array of pages. dstArrayCount must equal SkMultiPictureDocumentReadPageCount(). Return false on error.
Definition at line 199 of file SkMultiPictureDocument.cpp.
int SkMultiPictureDocument::ReadPageCount | ( | SkStreamSeekable * | src | ) |
Returns the number of pages in the SkMultiPictureDocument.
Definition at line 156 of file SkMultiPictureDocument.cpp.
bool SkMultiPictureDocument::ReadPageSizes | ( | SkStreamSeekable * | src, |
SkDocumentPage * | dstArray, | ||
int | dstArrayCount | ||
) |
Additional API allows one to read the array of page-sizes without parsing the entire file. Used by DM.
Definition at line 179 of file SkMultiPictureDocument.cpp.