54 this->drawAll(canvas, 2.5f);
56 canvas->
scale(0.5, 0.5);
57 this->drawAll(canvas, 1);
87 for (
const auto& rec : recs) {
89 bmpPaint.setShader(fBmp.
makeShader(kTM, kTM, rec.sampling, lm));
void onOnceBeforeDraw() override
void onDraw(SkCanvas *canvas) override
SkString getName() const override
SkISize getISize() override
sk_sp< SkImage > asImage() const
sk_sp< SkShader > makeShader(SkTileMode tmx, SkTileMode tmy, const SkSamplingOptions &, const SkMatrix *localMatrix=nullptr) const
void allocN32Pixels(int width, int height, bool isOpaque=false)
void eraseColor(SkColor4f) const
void drawRect(const SkRect &rect, const SkPaint &paint)
void translate(SkScalar dx, SkScalar dy)
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)
SkMatrix & setTranslateY(SkScalar v)
SkMatrix & setTranslateX(SkScalar v)
static const SkMatrix & I()
SkMatrix & setScaleX(SkScalar v)
void setAntiAlias(bool aa)
sk_sp< SkBlender > blender SkRect rect
SkSamplingOptions sampling
DEF_SWITCHES_START aot vmservice shared library name
font
Font Metadata and Metrics.
SkSamplingOptions(SkFilterMode::kLinear))
static constexpr SkCubicResampler Mitchell()
static constexpr SkISize Make(int32_t w, int32_t h)
static constexpr SkRect MakeLTRB(float l, float t, float r, float b)