31namespace sktext {
class GlyphRunList; }
35#pragma warning ( push )
36#pragma warning ( disable : 4701 )
44 auto gt = [](
float a,
int b) {
return !(
a <= (
float)
b); };
45 auto lt = [](
float a,
int b) {
return !(
a >= (
float)
b); };
46 return !(gt(position.
fX, INT_MAX - (INT16_MAX + SkTo<int>(UINT16_MAX))) ||
47 lt(position.
fX, INT_MIN - (INT16_MIN + 0 )) ||
48 gt(position.
fY, INT_MAX - (INT16_MAX + SkTo<int>(UINT16_MAX))) ||
49 lt(position.
fY, INT_MIN - (INT16_MIN + 0 )));
64 blitter = wrapper.getBlitter();
69 for (
auto [glyph,
pos] : accepted) {
75 if (!clipper.
done()) {
79 const_cast<uint8_t*
>(mask.
fImage),
88 }
while (!clipper.
done());
96 for (
auto [glyph,
pos] : accepted) {
114 const_cast<uint8_t*
>(mask.
fImage),
141#pragma warning ( pop )
static bool check_glyph_position(SkPoint position)
static SkSurfaceProps SkSurfacePropsCopyOrDefault(const SkSurfaceProps *props)
SkDEBUGCODE(SK_SPI) SkThreadID SkGetThreadID()
const SkIRect & getBounds() const
bool installPixels(const SkImageInfo &info, void *pixels, size_t rowBytes, void(*releaseProc)(void *addr, void *context), void *context)
static SkBlitter * Choose(const SkPixmap &dst, const SkMatrix &ctm, const SkPaint &paint, SkArenaAlloc *, bool drawCoverage, sk_sp< SkShader > clipShader, const SkSurfaceProps &props)
virtual void blitMask(const SkMask &, const SkIRect &clip)
const SkSurfaceProps * fProps
void drawSprite(const SkBitmap &, int x, int y, const SkPaint &) const
void drawGlyphRunList(SkCanvas *canvas, SkGlyphRunListPainterCPU *glyphPainter, const sktext::GlyphRunList &glyphRunList, const SkPaint &paint) const
void paintMasks(SkZip< const SkGlyph *, SkPoint > accepted, const SkPaint &paint) const override
void drawForBitmapDevice(SkCanvas *canvas, const BitmapDevicePainter *bitmapDevice, const sktext::GlyphRunList &glyphRunList, const SkPaint &paint, const SkMatrix &drawMatrix)
const SkAAClip & aaRgn() const
const SkRegion & bwRgn() const
sk_sp< SkShader > clipShader() const
const SkIRect & rect() const
const SkIRect & getBounds() const
Optional< SkRect > bounds
constexpr int32_t x() const
constexpr int32_t y() const
bool intersect(const SkIRect &r)
bool containsNoEmptyCheck(const SkIRect &r) const
constexpr SkISize size() const
static SkImageInfo MakeN32Premul(int width, int height)
@ kARGB32_Format
SkPMColor.
uint8_t const *const fImage