16#define SMALL SkIntToScalar(2)
18#define BIG SkIntToScalar(10)
56 paint.setAntiAlias(
true);
59 for (
int i = 0;
i < loops;
i++) {
62 r.
offset(fRadius, fRadius);
76 paint.setImageFilter(std::move(mf));
SkStrokeRec::Style fStyle
static const char * gStyleName[]
#define SkScalarRoundToInt(x)
#define SkScalarFloorToInt(x)
static SkScalar SkScalarFraction(SkScalar x)
virtual void setupPaint(SkPaint *paint)
MorphologyBench(SkScalar rad, MorphologyType style)
void onDraw(int loops, SkCanvas *canvas) override
const char * onGetName() override
void drawOval(const SkRect &oval, const SkPaint &paint)
static sk_sp< SkImageFilter > Erode(SkScalar radiusX, SkScalar radiusY, sk_sp< SkImageFilter > input, const CropRect &cropRect={})
static sk_sp< SkImageFilter > Dilate(SkScalar radiusX, SkScalar radiusY, sk_sp< SkImageFilter > input, const CropRect &cropRect={})
DEF_SWITCHES_START aot vmservice shared library name
void offset(float dx, float dy)
static constexpr SkRect MakeWH(float w, float h)