#include <DMSrcSink.h>
Definition at line 340 of file DMSrcSink.h.
◆ MSKPSrc()
DM::MSKPSrc::MSKPSrc |
( |
Path |
path | ) |
|
|
explicit |
Definition at line 1428 of file DMSrcSink.cpp.
1435 }
1436}
#define SkASSERT_RELEASE(cond)
static std::unique_ptr< SkStreamAsset > MakeFromFile(const char path[])
const char * c_str() const
SK_API int ReadPageCount(SkStreamSeekable *src)
bool ReadPageSizes(SkStreamSeekable *stream, SkDocumentPage *dstArray, int dstArrayCount)
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path
◆ draw() [1/2]
Reimplemented from DM::Src.
Definition at line 1448 of file DMSrcSink.cpp.
1448 {
1450 return Result::Fatal(
"Unable to parse MultiPictureDocument file: %s", fPath.
c_str());
1451 }
1452 if (
i >= fPages.
size() ||
i < 0) {
1453 return Result::Fatal(
"MultiPictureDocument page number out of range: %d",
i);
1454 }
1460 }
1462 return Result::Fatal(
"SkMultiPictureDocument reader failed on page %d: %s",
i,
1464 }
1465 page = fPages[
i].fPicture.get();
1466 }
1469}
int pageCount() const override
static Result Fatal(const char *fmt,...) SK_PRINTF_LIKE(1
void drawPicture(const SkPicture *picture)
SK_API bool Read(SkStreamSeekable *src, SkDocumentPage *dstArray, int dstArrayCount, const SkDeserialProcs *=nullptr)
◆ draw() [2/2]
Implements DM::Src.
Definition at line 1445 of file DMSrcSink.cpp.
1445 {
1446 return this->
draw(FLAGS_mskpFrame, c, testContext);
1447}
Result draw(SkCanvas *c, GraphiteTestContext *) const override
◆ name()
Name DM::MSKPSrc::name |
( |
| ) |
const |
|
overridevirtual |
◆ pageCount()
int DM::MSKPSrc::pageCount |
( |
| ) |
const |
|
overridevirtual |
◆ size() [1/2]
SkISize DM::MSKPSrc::size |
( |
| ) |
const |
|
overridevirtual |
Implements DM::Src.
Definition at line 1440 of file DMSrcSink.cpp.
1440{
return this->
size(FLAGS_mskpFrame); }
SkISize size() const override
◆ size() [2/2]
The documentation for this class was generated from the following files: