19 float deltaB = 255.0f /
height;
42 fName.
printf(
"constXTile_");
45 fName.
append(gTileModeStr[(
unsigned)xTile]);
46 fName.
append(gTileModeStr[(
unsigned)yTile]);
96 for (
int i = 0;
i < loops;
i++) {
106 inline static constexpr int kWidth = 1;
107 inline static constexpr int kHeight = 300;
#define SkColorSetRGB(r, g, b)
static constexpr SkColor SkColorSetARGB(U8CPU a, U8CPU r, U8CPU g, U8CPU b)
constexpr SkColor SK_ColorWHITE
static constexpr int kSkTileModeCount
constexpr SkFilterMode gNN
constexpr SkFilterMode gLI
static void create_gradient(SkBitmap *bm)
virtual void setupPaint(SkPaint *paint)
void onDraw(int loops, SkCanvas *canvas) override
ConstXTileBench(SkTileMode xTile, SkTileMode yTile, SkFilterMode fm, bool doTrans, bool doScale)
const char * onGetName() override
void onDelayedSetup() override
sk_sp< SkShader > makeShader(SkTileMode tmx, SkTileMode tmy, const SkSamplingOptions &, const SkMatrix *localMatrix=nullptr) const
void allocN32Pixels(int width, int height, bool isOpaque=false)
uint32_t * getAddr32(int x, int y) const
void eraseColor(SkColor4f) const
void drawRect(const SkRect &rect, const SkPaint &paint)
void scale(SkScalar sx, SkScalar sy)
void setColor(SkColor color)
void setShader(sk_sp< SkShader > shader)
void printf(const char format[],...) SK_PRINTF_LIKE(2
void append(const char text[])
const char * c_str() const
static constexpr SkRect MakeWH(float w, float h)