25 if (!fPixels->
addr()) {
27 if (!fPixels->
tryAlloc(bmImageInfo)) {
31 }
else if (fPixels->
dimensions() != pixmapSize) {
36 fDraw.
fDst = *fPixels;
37 fDraw.
fRC = &fRasterClip;
45 fRasterClip.
setRect(resultBounds);
49 paint.setAntiAlias(
true);
60 fDraw.
fCTM = &translatedMatrix;
62 if (
path.isInverseFillType()) {
64 path.toggleInverseFillType();
83 builder[0] = maskSize.x() | (maskSize.y() << 16);
91#ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK
109 uint32_t fracBits = fracX | (fracY >> 8);
116 uint32_t styleBits = strokeRec.
getStyle();
118 styleBits |= (strokeRec.
getCap() << 2);
121 styleBits |= (strokeRec.
getJoin() << 4);
125 builder[styleKeySize-1] = fracBits | (styleBits << 16);
SkBlitter * SkA8Blitter_Choose(const SkPixmap &dst, const SkMatrix &ctm, const SkPaint &paint, SkArenaAlloc *alloc, bool drawCoverage, sk_sp< SkShader > clipShader, const SkSurfaceProps &)
constexpr SkColor SK_ColorWHITE
#define SkScalarToFixed(x)
static uint32_t SkFloat2Bits(float value)
static SkScalar SkScalarFraction(SkScalar x)
bool tryAlloc(const SkImageInfo &)
BlitterChooser * fBlitterChooser
void drawPathCoverage(const SkPath &src, const SkPaint &paint, SkBlitter *customBlitter=nullptr) const
SkMatrix & postTranslate(SkScalar dx, SkScalar dy)
static constexpr int kMScaleX
horizontal scale factor
static constexpr int kMTransY
vertical translation
static constexpr int kMTransX
horizontal translation
static constexpr int kMSkewY
vertical skew factor
SkScalar get(int index) const
static constexpr int kMScaleY
vertical scale factor
static constexpr int kMSkewX
horizontal skew factor
static constexpr int kCapCount
static constexpr int kJoinCount
bool erase(SkColor color, const SkIRect &subset) const
const void * addr() const
SkISize dimensions() const
bool setRect(const SkIRect &)
static constexpr int kStyleCount
bool isHairlineStyle() const
SkScalar getWidth() const
SkPaint::Join getJoin() const
SkPaint::Cap getCap() const
void applyToPaint(SkPaint *paint) const
SkScalar getMiter() const
static Domain GenerateDomain()
bool init(SkISize pixmapSize)
void drawShape(const Shape &shape, const Transform &transform, const SkStrokeRec &strokeRec, const SkIRect &resultBounds)
void writeKey(uint32_t *key, bool includeInverted) const
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path
skgpu::UniqueKey GeneratePathMaskKey(const Shape &shape, const Transform &transform, const SkStrokeRec &strokeRec, skvx::half2 maskSize)
static SkColor4f transform(SkColor4f c, SkColorSpace *src, SkColorSpace *dst)
constexpr int32_t x() const
constexpr int32_t y() const
static SkImageInfo MakeA8(int width, int height)