Definition at line 169 of file skpbench.cpp.
◆ MultiFrameSkp()
MultiFrameSkp::MultiFrameSkp |
( |
const std::vector< SkDocumentPage > & |
frames | ) |
|
|
inline |
◆ count()
int MultiFrameSkp::count |
( |
| ) |
const |
|
inline |
◆ drawAndFlushAndSync()
Implements SkpProducer.
Definition at line 199 of file skpbench.cpp.
201 {
202 for (
int i=0;
i<this->
count();
i++){
204 }
205 return this->
count();
206 }
sk_sp< SkPicture > frame(int n) const
const myers::Point & get(const myers::Segment &)
static void draw_skp_and_flush_with_sync(GrDirectContext *, SkSurface *, const SkPicture *, GpuSync &)
◆ frame()
Definition at line 208 of file skpbench.cpp.
208{ return fFrames[n].fPicture; }
◆ MakeFromFile()
Definition at line 173 of file skpbench.cpp.
173 {
174
176 if (!
stream) {
return nullptr; }
177
178
179 auto deserialContext = std::make_unique<SkSharingDeserialContext>();
183
184
185
188 return nullptr;
189 }
190 std::vector<SkDocumentPage> frames(
page_count);
192 return nullptr;
193 }
194
195 return std::make_unique<MultiFrameSkp>(frames);
196 }
static std::unique_ptr< SkStreamAsset > MakeFromFile(const char path[])
SK_API bool Read(SkStreamSeekable *src, SkDocumentPage *dstArray, int dstArrayCount, const SkDeserialProcs *=nullptr)
SK_API int ReadPageCount(SkStreamSeekable *src)
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
SkDeserialImageProc fImageProc
static sk_sp< SkImage > deserializeImage(const void *data, size_t length, void *ctx)
The documentation for this class was generated from the following file: