36 for (
int h = 0;
h <
H; ++
h) {
37 for (
int w = 0;
w < W; ++
w) {
49 for (
int loop = 0; loop < loops; ++loop) {
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
DEF_BENCH(return new PremulAndUnpremulAlphaOpsBench(kRGBA_8888_SkColorType))
@ kBGRA_8888_SkColorType
pixel with 8 bits for blue, green, red, alpha; in 32-bit word
@ kRGBA_8888_SkColorType
pixel with 8 bits for red, green, blue, alpha; in 32-bit word
static constexpr SkColor SkColorSetARGB(U8CPU a, U8CPU r, U8CPU g, U8CPU b)
constexpr SkColor SK_ColorBLACK
void onDelayedSetup() override
const char * onGetName() override
PremulAndUnpremulAlphaOpsBench(SkColorType ct)
void onDraw(int loops, SkCanvas *canvas) override
void allocPixels(const SkImageInfo &info, size_t rowBytes)
const SkImageInfo & info() const
uint32_t * getAddr32(int x, int y) const
bool writePixels(const SkImageInfo &info, const void *pixels, size_t rowBytes, int x, int y)
void clear(SkColor color)
bool readPixels(const SkImageInfo &dstInfo, void *dstPixels, size_t dstRowBytes, int srcX, int srcY)
void printf(const char format[],...) SK_PRINTF_LIKE(2
const char * c_str() const
static SkImageInfo Make(int width, int height, SkColorType ct, SkAlphaType at)