27 fName.
printf(
"tile_image_filter_tiled_%d", tileSize);
29 fName.
printf(
"tile_image_filter");
43 for (
int i = 0;
i < loops;
i++) {
45 for (
int y = 0;
y <
HEIGHT;
y += fTileSize) {
46 for (
int x = 0;
x <
WIDTH;
x += fTileSize) {
void drawRect(const SkRect &rect, const SkPaint &paint)
void clipRect(const SkRect &rect, SkClipOp op, bool doAntiAlias)
static sk_sp< SkImageFilter > Tile(const SkRect &src, const SkRect &dst, sk_sp< SkImageFilter > input)
void printf(const char format[],...) SK_PRINTF_LIKE(2
const char * c_str() const
void onDraw(int loops, SkCanvas *canvas) override
const char * onGetName() override
TileImageFilterBench(int tileSize)
static constexpr SkIRect MakeXYWH(int32_t x, int32_t y, int32_t w, int32_t h)
static SkRect Make(const SkISize &size)
static constexpr SkRect MakeWH(float w, float h)