Go to the source code of this file.
◆ serialize_image()
Definition at line 162 of file SkWriteBuffer.cpp.
162 {
166 }
167 if (data) {
169 }
170
171
173 if (data) {
175 }
176#if !defined(SK_DISABLE_LEGACY_PNG_WRITEBUFFER)
179 if (!ib->getROPixels(ib->directContext(), &bm)) {
180 return nullptr;
181 }
184 return stream.detachAsData();
185 }
186#endif
187 return nullptr;
188}
static SkImage_Base * as_IB(SkImage *image)
const SkPixmap & pixmap() const
sk_sp< SkData > refEncodedData() const
SK_API bool Encode(SkWStream *dst, const SkPixmap &src, const Options &options)
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot data
SkSerialImageProc fImageProc
◆ serialize_mipmap()
Definition at line 190 of file SkWriteBuffer.cpp.
190 {
191
192
193
194
195
196
198
199
202 for (
int i = 0; i <
count; ++i) {
207 buffer.writeDataAsByteArray(levelData.
get());
208 } else {
209 return nullptr;
210 }
211 }
212 return buffer.snapshotAsData();
213}
static sk_sp< SkData > serialize_image(const SkImage *image, SkSerialProcs procs)
bool getLevel(int index, Level *) const
void write32(int32_t value)
static const uint8_t buffer[]
SK_API sk_sp< SkImage > RasterFromPixmap(const SkPixmap &pixmap, RasterReleaseProc rasterReleaseProc, ReleaseContext releaseContext)