Flutter Engine
The Flutter Engine
|
#include <SkDraw.h>
Public Member Functions | |
SkDraw () | |
void | drawBitmap (const SkBitmap &, const SkMatrix &, const SkRect *dstOrNull, const SkSamplingOptions &, const SkPaint &) const override |
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 | drawPoints (SkCanvas::PointMode, size_t count, const SkPoint[], const SkPaint &, SkDevice *) const |
void | drawVertices (const SkVertices *, sk_sp< SkBlender >, const SkPaint &, bool skipColorXform) const |
void | drawAtlas (const SkRSXform[], const SkRect[], const SkColor[], int count, sk_sp< SkBlender >, const SkPaint &) |
Public Member Functions inherited from SkDrawBase | |
SkDrawBase () | |
void | drawPaint (const SkPaint &) const |
void | drawRect (const SkRect &prePaintRect, const SkPaint &, const SkMatrix *paintMatrix, const SkRect *postPaintRect) const |
void | drawRect (const SkRect &rect, const SkPaint &paint) const |
void | drawRRect (const SkRRect &, const SkPaint &) const |
void | drawPath (const SkPath &path, const SkPaint &paint, const SkMatrix *prePathMatrix=nullptr, bool pathIsMutable=false) const |
void | drawPathCoverage (const SkPath &src, const SkPaint &paint, SkBlitter *customBlitter=nullptr) const |
void | drawDevicePoints (SkCanvas::PointMode, size_t count, const SkPoint[], const SkPaint &, SkDevice *) const |
void | validate () const |
Public Member Functions inherited from SkGlyphRunListPainterCPU::BitmapDevicePainter | |
BitmapDevicePainter ()=default | |
BitmapDevicePainter (const BitmapDevicePainter &)=default | |
virtual | ~BitmapDevicePainter ()=default |
virtual void | paintMasks (SkZip< const SkGlyph *, SkPoint > accepted, const SkPaint &paint) const =0 |
virtual void | drawBitmap (const SkBitmap &, const SkMatrix &, const SkRect *dstOrNull, const SkSamplingOptions &, const SkPaint &) const =0 |
Additional Inherited Members | |
Public Types inherited from SkDrawBase | |
enum | RectType { kHair_RectType , kFill_RectType , kStroke_RectType , kPath_RectType } |
using | BlitterChooser = SkBlitter *(const SkPixmap &dst, const SkMatrix &ctm, const SkPaint &, SkArenaAlloc *, bool drawCoverage, sk_sp< SkShader > clipShader, const SkSurfaceProps &) |
Static Public Member Functions inherited from SkDrawBase | |
static bool | ComputeMaskBounds (const SkRect &devPathBounds, const SkIRect &clipBounds, const SkMaskFilter *filter, const SkMatrix *filterMatrix, SkIRect *bounds) |
static bool | DrawToMask (const SkPath &devPath, const SkIRect &clipBounds, const SkMaskFilter *, const SkMatrix *filterMatrix, SkMaskBuilder *dst, SkMaskBuilder::CreateMode mode, SkStrokeRec::InitStyle style) |
static RectType | ComputeRectType (const SkRect &, const SkPaint &, const SkMatrix &, SkPoint *strokeSize) |
Public Attributes inherited from SkDrawBase | |
SkPixmap | fDst |
BlitterChooser * | fBlitterChooser {nullptr} |
const SkMatrix * | fCTM {nullptr} |
const SkRasterClip * | fRC {nullptr} |
const SkSurfaceProps * | fProps {nullptr} |
SkDraw::SkDraw | ( | ) |
Definition at line 52 of file SkDraw.cpp.
void SkDraw::drawAtlas | ( | const SkRSXform | xform[], |
const SkRect | textures[], | ||
const SkColor | colors[], | ||
int | count, | ||
sk_sp< SkBlender > | blender, | ||
const SkPaint & | paint | ||
) |
Definition at line 71 of file SkDraw_atlas.cpp.
|
overridevirtual |
Implements SkGlyphRunListPainterCPU::BitmapDevicePainter.
Definition at line 303 of file SkDraw.cpp.
void SkDraw::drawGlyphRunList | ( | SkCanvas * | canvas, |
SkGlyphRunListPainterCPU * | glyphPainter, | ||
const sktext::GlyphRunList & | glyphRunList, | ||
const SkPaint & | paint | ||
) | const |
Definition at line 126 of file SkDraw_text.cpp.
void SkDraw::drawPoints | ( | SkCanvas::PointMode | mode, |
size_t | count, | ||
const SkPoint | pts[], | ||
const SkPaint & | paint, | ||
SkDevice * | device | ||
) | const |
Definition at line 237 of file SkDraw.cpp.
Definition at line 376 of file SkDraw.cpp.
void SkDraw::drawVertices | ( | const SkVertices * | vertices, |
sk_sp< SkBlender > | blender, | ||
const SkPaint & | paint, | ||
bool | skipColorXform | ||
) | const |
Definition at line 309 of file SkDraw_vertices.cpp.
|
overridevirtual |
Implements SkGlyphRunListPainterCPU::BitmapDevicePainter.
Definition at line 52 of file SkDraw_text.cpp.