47 fName.printf(
"repeatTile_%s_%c",
72 for (
int i = 0;
i < loops;
i++) {
static void draw_into_bitmap(const SkBitmap &bm)
@ kOpaque_SkAlphaType
pixel is opaque
@ kPremul_SkAlphaType
pixel components are premultiplied by alpha
@ kRGB_565_SkColorType
pixel with 5 bits red, 6 bits green, 5 bits blue, in 16-bit word
constexpr SkColor SK_ColorBLUE
constexpr SkColor SK_ColorRED
constexpr SkColor SK_ColorWHITE
virtual void setupPaint(SkPaint *paint)
const char * onGetName() override
void onDelayedSetup() override
RepeatTileBench(SkColorType ct, SkAlphaType at=kPremul_SkAlphaType)
void onDraw(int loops, SkCanvas *canvas) override
void allocPixels(const SkImageInfo &info, size_t rowBytes)
sk_sp< SkShader > makeShader(SkTileMode tmx, SkTileMode tmy, const SkSamplingOptions &, const SkMatrix *localMatrix=nullptr) const
bool setInfo(const SkImageInfo &imageInfo, size_t rowBytes=0)
void eraseColor(SkColor4f) const
void drawRect(const SkRect &rect, const SkPaint &paint)
void drawPaint(const SkPaint &paint)
void drawCircle(SkScalar cx, SkScalar cy, SkScalar radius, const SkPaint &paint)
@ kStroke_Style
set to stroke geometry
void setShader(sk_sp< SkShader > shader)
static float min(float r, float g, float b)
static SkImageInfo Make(int width, int height, SkColorType ct, SkAlphaType at)
void setWH(float width, float height)