37 fDraw.
fCTM = &translatedMatrix;
43 GrAA aa, uint8_t alpha) {
46 fDraw.
fCTM = &translatedMatrix;
55 GrAA aa, uint8_t alpha) {
62 fDraw.
fCTM = &translatedMatrix;
75 GrAA aa, uint8_t alpha) {
80 fDraw.
fCTM = &translatedMatrix;
92 }
else if (shape.
isRect()) {
117 if (!fPixels->
tryAlloc(bmImageInfo)) {
123 fDraw.
fDst = *fPixels;
125 fDraw.
fRC = &fRasterClip;
131 size_t rowBytes = fPixels->
rowBytes();
135 [](
void* addr,
void* context) { sk_free(addr); },
static SkPaint get_paint(GrAA aa, uint8_t alpha)
#define SkAssertResult(cond)
SkBlitter * SkA8Blitter_Choose(const SkPixmap &dst, const SkMatrix &ctm, const SkPaint &paint, SkArenaAlloc *alloc, bool drawCoverage, sk_sp< SkShader > clipShader, const SkSurfaceProps &)
static constexpr SkColor SkColorSetARGB(U8CPU a, U8CPU r, U8CPU g, U8CPU b)
std::tuple< GrSurfaceProxyView, GrColorType > GrMakeUncachedBitmapProxyView(GrRecordingContext *rContext, const SkBitmap &bitmap, skgpu::Mipmapped mipmapped, SkBackingFit fit, skgpu::Budgeted budgeted)
void drawRect(const SkRect &rect, const SkMatrix &matrix, GrAA, uint8_t alpha)
void drawRRect(const SkRRect &rrect, const SkMatrix &matrix, GrAA, uint8_t alpha)
void drawShape(const GrStyledShape &, const SkMatrix &matrix, GrAA, uint8_t alpha)
bool init(const SkIRect &resultBounds)
GrSurfaceProxyView toTextureView(GrRecordingContext *, SkBackingFit fit)
void asPath(SkPath *out, bool simpleFill=true) const
sk_sp< SkPathEffect > refPathEffect() const
const SkStrokeRec & strokeRec() const
void asPath(SkPath *out) const
const GrStyle & style() const
bool tryAlloc(const SkImageInfo &)
void drawRRect(const SkRRect &, const SkPaint &) const
BlitterChooser * fBlitterChooser
void drawPath(const SkPath &path, const SkPaint &paint, const SkMatrix *prePathMatrix=nullptr, bool pathIsMutable=false) const
void drawPaint(const SkPaint &) const
void drawPathCoverage(const SkPath &src, const SkPaint &paint, SkBlitter *customBlitter=nullptr) const
void drawRect(const SkRect &prePaintRect, const SkPaint &, const SkMatrix *paintMatrix, const SkRect *postPaintRect) const
SkMatrix & postTranslate(SkScalar dx, SkScalar dy)
bool erase(SkColor color, const SkIRect &subset) const
bool setRect(const SkIRect &)
void applyToPaint(SkPaint *paint) const
constexpr int32_t height() const
int32_t fTop
smaller y-axis bounds
constexpr int32_t width() const
static constexpr SkIRect MakeWH(int32_t w, int32_t h)
int32_t fLeft
smaller x-axis bounds
static SkImageInfo MakeA8(int width, int height)