Go to the source code of this file.
|
void | FuzzSKP (const uint8_t *data, size_t size) |
|
◆ FuzzSKP()
void FuzzSKP |
( |
const uint8_t * |
data, |
|
|
size_t |
size |
|
) |
| |
Definition at line 15 of file FuzzSKP.cpp.
15 {
17 if (!pic) {
18 return;
19 }
22 surface->getCanvas()->drawPicture(pic);
23 pic->approximateBytesUsed();
24 pic->approximateOpCount();
25 return;
26}
static constexpr SkISize kCanvasSize
static sk_sp< SkPicture > MakeFromData(const SkData *data, const SkDeserialProcs *procs=nullptr)
SK_API sk_sp< SkSurface > Raster(const SkImageInfo &imageInfo, size_t rowBytes, const SkSurfaceProps *surfaceProps)
constexpr int32_t width() const
constexpr int32_t height() const
static SkImageInfo MakeN32Premul(int width, int height)
◆ kCanvasSize
constexpr SkISize kCanvasSize = {128, 160} |
|
staticconstexpr |