18#define SMALL SkIntToScalar(2)
20#define BIG SkIntToScalar(10)
42 const char* quality =
"high_quality";
44 fName.printf(
"blur_%.2f_%s_%s", rad,
name, quality);
59 paint.setAntiAlias(
true);
62 for (
int i = 0;
i < loops;
i++) {
65 r.
offset(fRadius, fRadius);
SkStrokeRec::Style fStyle
static const char * gStyleName[]
@ kOuter_SkBlurStyle
nothing inside, fuzzy outside
@ kSolid_SkBlurStyle
solid inside, fuzzy outside
@ kInner_SkBlurStyle
fuzzy inside, nothing outside
@ kNormal_SkBlurStyle
fuzzy inside and outside
#define SkScalarRoundToInt(x)
static SkScalar SkScalarFraction(SkScalar x)
virtual void setupPaint(SkPaint *paint)
BlurBench(SkScalar rad, SkBlurStyle bs)
void onDraw(int loops, SkCanvas *canvas) override
const char * onGetName() override
static SkScalar SK_SPI ConvertRadiusToSigma(SkScalar radius)
void drawOval(const SkRect &oval, const SkPaint &paint)
static sk_sp< SkMaskFilter > MakeBlur(SkBlurStyle style, SkScalar sigma, bool respectCTM=true)
DEF_SWITCHES_START aot vmservice shared library name
void offset(float dx, float dy)
static constexpr SkRect MakeWH(float w, float h)