Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
SkBitmapDevice::BDDraw Class Reference
Inheritance diagram for SkBitmapDevice::BDDraw:
SkDraw SkDrawBase SkGlyphRunListPainterCPU::BitmapDevicePainter

Public Member Functions

 BDDraw (SkBitmapDevice *dev)
 
- Public Member Functions inherited from SkDraw
 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
 
BlitterChooserfBlitterChooser {nullptr}
 
const SkMatrixfCTM {nullptr}
 
const SkRasterClipfRC {nullptr}
 
const SkSurfacePropsfProps {nullptr}
 

Detailed Description

Definition at line 203 of file SkBitmapDevice.cpp.

Constructor & Destructor Documentation

◆ BDDraw()

SkBitmapDevice::BDDraw::BDDraw ( SkBitmapDevice dev)
inline

Definition at line 205 of file SkBitmapDevice.cpp.

205 {
206 // we need fDst to be set, and if we're actually drawing, to dirty the genID
207 if (!dev->accessPixels(&fDst)) {
208 // NoDrawDevice uses us (why?) so we have to catch this case w/ no pixels
209 fDst.reset(dev->imageInfo(), nullptr, 0);
210 }
211 fCTM = &dev->localToDevice();
212 fRC = &dev->fRCStack.rc();
213 }
const SkImageInfo & imageInfo() const
Definition: SkDevice.h:117
bool accessPixels(SkPixmap *pmap)
Definition: SkDevice.cpp:383
const SkMatrix & localToDevice() const
Definition: SkDevice.h:179
const SkRasterClip * fRC
Definition: SkDrawBase.h:156
SkPixmap fDst
Definition: SkDrawBase.h:153
const SkMatrix * fCTM
Definition: SkDrawBase.h:155
void reset()
Definition: SkPixmap.cpp:32
const SkRasterClip & rc() const

The documentation for this class was generated from the following file: