21 bigKernel ?
"bigKernel_" :
"",
23 convolveAlpha ?
"" :
"_noConvolveAlpha")) {
27 for (
int i = 0;
i < 81;
i++) {
34 kernelOffset, tileMode, convolveAlpha,
46 kernelOffset, tileMode, convolveAlpha,
59 paint.setImageFilter(fFilter);
60 paint.setAntiAlias(
true);
63 for (
int i = 0;
i < loops;
i++) {
SK_API SkString SkStringPrintf(const char *format,...) SK_PRINTF_LIKE(1
Creates a new string and writes into it using a printf()-style format.
virtual void setupPaint(SkPaint *paint)
const char * onGetName() override
void onDraw(int loops, SkCanvas *canvas) override
MatrixConvolutionBench(bool bigKernel, SkTileMode tileMode, bool convolveAlpha)
void drawOval(const SkRect &oval, const SkPaint &paint)
static sk_sp< SkImageFilter > MatrixConvolution(const SkISize &kernelSize, const SkScalar kernel[], SkScalar gain, SkScalar bias, const SkIPoint &kernelOffset, SkTileMode tileMode, bool convolveAlpha, sk_sp< SkImageFilter > input, const CropRect &cropRect={})
const char * c_str() const
static constexpr SkIPoint Make(int32_t x, int32_t y)
static constexpr SkISize Make(int32_t w, int32_t h)
static constexpr SkRect MakeWH(float w, float h)