21 : fW(
w), fH(
h), fHalfFoat(halfFloat)
23 fName.printf(
"mipmap_build_%dx%d",
w,
h);
45 for (
int i = 0;
i < loops * 4;
i++) {
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
@ kPremul_SkAlphaType
pixel components are premultiplied by alpha
@ kRGBA_F16_SkColorType
pixel with half floats for red, green, blue, alpha;
constexpr SkColor SK_ColorWHITE
MipmapBench(int w, int h, bool halfFloat=false)
const char * onGetName() override
void onDelayedSetup() override
void onDraw(int loops, SkCanvas *) override
bool isSuitableFor(Backend backend) override
void allocPixels(const SkImageInfo &info, size_t rowBytes)
void eraseColor(SkColor4f) const
static sk_sp< SkColorSpace > MakeSRGB()
static SkMipmap * Build(const SkPixmap &src, SkDiscardableFactoryProc, bool computeContents=true)
static SkImageInfo Make(int width, int height, SkColorType ct, SkAlphaType at)