27 for (
size_t i = 0;
i < bufSize-1; ++
i) {
30 str[bufSize-1] =
'\0';
58 p->setStrokeMiter(sc);
61 p->setStrokeWidth(sc);
132 font.setForceAutoHinting(
b);
134 font.setEmbeddedBitmaps(
b);
140 font.setLinearMetrics(
b);
211 for (
int k = 0; k <
i; ++k) {
295 SkDebugf(
"Could not initialize font.\n");
319 SkDEBUGF(
"Fuzz DrawImage/DrawImageRect\n");
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
static void fuzz_drawPaint(Fuzz *fuzz)
static void fuzz_drawRect(Fuzz *fuzz)
static void fuzz_drawImage(Fuzz *fuzz)
static void fuzz_drawCircle(Fuzz *fuzz)
static void init_bitmap(Fuzz *fuzz, SkBitmap *bmp)
static void fuzz_drawText(Fuzz *fuzz, sk_sp< SkTypeface > typeface)
static void init_surface(Fuzz *fuzz, sk_sp< SkSurface > *s)
static void init_string(Fuzz *fuzz, char *str, size_t bufSize)
DEF_FUZZ(DrawFunctions, fuzz)
static void fuzz_drawPath(Fuzz *fuzz)
static void fuzz_drawLine(Fuzz *fuzz)
static void init_paint(Fuzz *fuzz, SkPaint *p)
static const int kBmpSize
@ kOpaque_SkAlphaType
pixel is opaque
@ kPremul_SkAlphaType
pixel components are premultiplied by alpha
@ kLastMode
last valid value
@ kBGRA_8888_SkColorType
pixel with 8 bits for blue, green, red, alpha; in 32-bit word
@ kLastEnum_SkColorType
last valid value
@ kRGBA_8888_SkColorType
pixel with 8 bits for red, green, blue, alpha; in 32-bit word
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
static SkColorType colorType(AImageDecoder *decoder, const AImageDecoderHeaderInfo *headerInfo)
void nextRange(T *, Min, Max)
sk_sp< SkImage > asImage() const
bool tryAllocPixels(const SkImageInfo &info, size_t rowBytes)
void eraseColor(SkColor4f) const
void drawRect(const SkRect &rect, const SkPaint &paint)
void clipRect(const SkRect &rect, SkClipOp op, bool doAntiAlias)
void clipPath(const SkPath &path, SkClipOp op, bool doAntiAlias)
void drawPath(const SkPath &path, const SkPaint &paint)
void drawTextBlob(const SkTextBlob *blob, SkScalar x, SkScalar y, const SkPaint &paint)
@ kAntiAlias
may have transparent pixels on glyph edges
@ kSubpixelAntiAlias
glyph positioned in pixel using transparency
@ kLast_Cap
largest Cap value
@ kStrokeAndFill_Style
sets to stroke and fill geometry
@ kLast_Join
equivalent to the largest value for Join
static sk_sp< SkTextBlob > MakeFromPosText(const void *text, size_t byteLength, const SkPoint pos[], const SkFont &font, SkTextEncoding encoding=SkTextEncoding::kUTF8)
VULKAN_HPP_DEFAULT_DISPATCH_LOADER_DYNAMIC_STORAGE auto & d
sk_sp< const SkImage > image
SK_API sk_sp< SkSurface > Raster(const SkImageInfo &imageInfo, size_t rowBytes, const SkSurfaceProps *surfaceProps)
SK_API sk_sp< SkSurface > Null(int width, int height)
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
font
Font Metadata and Metrics.
SkSamplingOptions(SkFilterMode::kLinear))
static SkImageInfo MakeN32Premul(int width, int height)
static SkImageInfo Make(int width, int height, SkColorType ct, SkAlphaType at)
void set(float x, float y)
static constexpr SkRect MakeXYWH(float x, float y, float w, float h)
static constexpr SkRect MakeWH(float w, float h)