25 static const int kWidth = 25;
31 for (
int y = firstBlackRow;
y < lastBlackRow; ++
y) {
62 static const bool kDoAA =
true;
71 kSampling, &localMat));
94 kSampling, &localMat));
@ kOpaque_SkAlphaType
pixel is opaque
static SkPMColor SkPackARGB32(U8CPU a, U8CPU r, U8CPU g, U8CPU b)
constexpr SkColor SK_ColorRED
constexpr SkColor SK_ColorWHITE
void onOnceBeforeDraw() override
SkISize getISize() override
void onDraw(SkCanvas *canvas) override
SkString getName() const override
sk_sp< SkImage > asImage() const
void allocN32Pixels(int width, int height, bool isOpaque=false)
bool setAlphaType(SkAlphaType alphaType)
uint32_t * getAddr32(int x, int y) const
void eraseColor(SkColor4f) const
void drawRect(const SkRect &rect, const SkPaint &paint)
sk_sp< SkShader > makeShader(SkTileMode tmx, SkTileMode tmy, const SkSamplingOptions &, const SkMatrix *localMatrix=nullptr) const
void setScaleTranslate(SkScalar sx, SkScalar sy, SkScalar tx, SkScalar ty)
void setColor(SkColor color)
void setAntiAlias(bool aa)
void setShader(sk_sp< SkShader > shader)
static sk_sp< SkImage > make_image(int firstBlackRow, int lastBlackRow)
static constexpr SkCubicResampler Mitchell()
static constexpr SkISize Make(int32_t w, int32_t h)
static constexpr SkRect MakeXYWH(float x, float y, float w, float h)