5REG_FIDDLE(Image_isLazyGenerated_a, 256, 80,
false, 0) {
12 const Options&
options)
override {
14 for (
int y = 0;
y <
info.height(); ++
y) {
15 for (
int x = 0;
x <
info.width(); ++
x) {
16 pixels[
y *
info.width() +
x] = 0xff223344 +
y * 0x000C0811;
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
void scale(SkScalar sx, SkScalar sy)
void drawString(const char str[], SkScalar x, SkScalar y, const SkFont &font, const SkPaint &paint)
void drawImage(const SkImage *image, SkScalar left, SkScalar top)
sk_sp< SkTypeface > matchFamilyStyle(const char familyName[], const SkFontStyle &) const
virtual bool isLazyGenerated() const =0
~TestImageGenerator() override
bool onGetPixels(const SkImageInfo &info, void *pixels, size_t rowBytes, const Options &options) override
sk_sp< SkFontMgr > fontMgr
#define REG_FIDDLE(NAME, W, H, TEXT, I)
SK_API sk_sp< SkImage > DeferredFromGenerator(std::unique_ptr< SkImageGenerator > imageGenerator)
static SkImageInfo MakeN32Premul(int width, int height)