Go to the source code of this file.
|
| REG_FIDDLE (Image_isLazyGenerated_a, 256, 80, false, 0) |
|
◆ REG_FIDDLE()
REG_FIDDLE |
( |
Image_isLazyGenerated_a |
, |
|
|
256 |
, |
|
|
80 |
, |
|
|
false |
, |
|
|
0 |
|
|
) |
| |
Definition at line 5 of file Image_isLazyGenerated_a.cpp.
5 {
7public:
10protected:
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;
17 }
18 }
19 return true;
20 }
21};
22
32}
33}
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
SK_API sk_sp< SkImage > DeferredFromGenerator(std::unique_ptr< SkImageGenerator > imageGenerator)
font
Font Metadata and Metrics.