Flutter Engine
The Flutter Engine
|
Public Attributes | |
SkPaint * | fPaint |
Viewer::SkPaintFields * | fPaintOverrides |
SkFont * | fFont |
Viewer::SkFontFields * | fFontOverrides |
Additional Inherited Members | |
Public Types inherited from SkPaintFilterCanvas | |
enum | Type { kPicture_Type } |
Public Types inherited from SkCanvas | |
enum | SaveLayerFlagsSet { kPreserveLCDText_SaveLayerFlag = 1 << 1 , kInitWithPrevious_SaveLayerFlag = 1 << 2 , kF16ColorType = 1 << 4 } |
enum | PointMode { kPoints_PointMode , kLines_PointMode , kPolygon_PointMode } |
enum | SrcRectConstraint { kStrict_SrcRectConstraint , kFast_SrcRectConstraint } |
enum | QuadAAFlags : unsigned { kLeft_QuadAAFlag = 0b0001 , kTop_QuadAAFlag = 0b0010 , kRight_QuadAAFlag = 0b0100 , kBottom_QuadAAFlag = 0b1000 , kNone_QuadAAFlags = 0b0000 , kAll_QuadAAFlags = 0b1111 } |
using | SaveLayerFlags = uint32_t |
using | FilterSpan = SkSpan< sk_sp< SkImageFilter > > |
Static Public Member Functions inherited from SkCanvas | |
static std::unique_ptr< SkCanvas > | MakeRasterDirect (const SkImageInfo &info, void *pixels, size_t rowBytes, const SkSurfaceProps *props=nullptr) |
static std::unique_ptr< SkCanvas > | MakeRasterDirectN32 (int width, int height, SkPMColor *pixels, size_t rowBytes) |
Static Public Attributes inherited from SkCanvas | |
static constexpr int | kMaxFiltersPerLayer = 16 |
Protected Types inherited from SkCanvas | |
enum | SaveLayerStrategy { kFullLayer_SaveLayerStrategy , kNoLayer_SaveLayerStrategy } |
enum | ClipEdgeStyle { kHard_ClipEdgeStyle , kSoft_ClipEdgeStyle } |
Protected Member Functions inherited from SkPaintFilterCanvas | |
virtual bool | onFilter (SkPaint &paint) const =0 |
void | onDrawPaint (const SkPaint &) override |
void | onDrawBehind (const SkPaint &) override |
void | onDrawPoints (PointMode, size_t count, const SkPoint pts[], const SkPaint &) override |
void | onDrawRect (const SkRect &, const SkPaint &) override |
void | onDrawRRect (const SkRRect &, const SkPaint &) override |
void | onDrawDRRect (const SkRRect &, const SkRRect &, const SkPaint &) override |
void | onDrawRegion (const SkRegion &, const SkPaint &) override |
void | onDrawOval (const SkRect &, const SkPaint &) override |
void | onDrawArc (const SkRect &, SkScalar, SkScalar, bool, const SkPaint &) override |
void | onDrawPath (const SkPath &, const SkPaint &) override |
void | onDrawImage2 (const SkImage *, SkScalar, SkScalar, const SkSamplingOptions &, const SkPaint *) override |
void | onDrawImageRect2 (const SkImage *, const SkRect &, const SkRect &, const SkSamplingOptions &, const SkPaint *, SrcRectConstraint) override |
void | onDrawImageLattice2 (const SkImage *, const Lattice &, const SkRect &, SkFilterMode, const SkPaint *) override |
void | onDrawAtlas2 (const SkImage *, const SkRSXform[], const SkRect[], const SkColor[], int, SkBlendMode, const SkSamplingOptions &, const SkRect *, const SkPaint *) override |
void | onDrawVerticesObject (const SkVertices *, SkBlendMode, const SkPaint &) override |
void | onDrawPatch (const SkPoint cubics[12], const SkColor colors[4], const SkPoint texCoords[4], SkBlendMode, const SkPaint &paint) override |
void | onDrawPicture (const SkPicture *, const SkMatrix *, const SkPaint *) override |
void | onDrawDrawable (SkDrawable *, const SkMatrix *) override |
void | onDrawGlyphRunList (const sktext::GlyphRunList &, const SkPaint &) override |
void | onDrawTextBlob (const SkTextBlob *blob, SkScalar x, SkScalar y, const SkPaint &paint) override |
void | onDrawAnnotation (const SkRect &rect, const char key[], SkData *value) override |
void | onDrawShadowRec (const SkPath &path, const SkDrawShadowRec &rec) override |
void | onDrawEdgeAAQuad (const SkRect &, const SkPoint[4], QuadAAFlags, const SkColor4f &, SkBlendMode) override |
void | onDrawEdgeAAImageSet2 (const ImageSetEntry[], int count, const SkPoint[], const SkMatrix[], const SkSamplingOptions &, const SkPaint *, SrcRectConstraint) override |
sk_sp< SkSurface > | onNewSurface (const SkImageInfo &, const SkSurfaceProps &) override |
bool | onPeekPixels (SkPixmap *pixmap) override |
bool | onAccessTopLayerPixels (SkPixmap *pixmap) override |
SkImageInfo | onImageInfo () const override |
bool | onGetProps (SkSurfaceProps *props, bool top) const override |
Protected Member Functions inherited from SkCanvasVirtualEnforcer< SkNWayCanvas > | |
void | onDrawPaint (const SkPaint &paint) override=0 |
void | onDrawBehind (const SkPaint &) override |
void | onDrawRect (const SkRect &rect, const SkPaint &paint) override=0 |
void | onDrawRRect (const SkRRect &rrect, const SkPaint &paint) override=0 |
void | onDrawDRRect (const SkRRect &outer, const SkRRect &inner, const SkPaint &paint) override=0 |
void | onDrawOval (const SkRect &rect, const SkPaint &paint) override=0 |
void | onDrawArc (const SkRect &rect, SkScalar startAngle, SkScalar sweepAngle, bool useCenter, const SkPaint &paint) override=0 |
void | onDrawPath (const SkPath &path, const SkPaint &paint) override=0 |
void | onDrawRegion (const SkRegion ®ion, const SkPaint &paint) override=0 |
void | onDrawTextBlob (const SkTextBlob *blob, SkScalar x, SkScalar y, const SkPaint &paint) override=0 |
void | onDrawPatch (const SkPoint cubics[12], const SkColor colors[4], const SkPoint texCoords[4], SkBlendMode mode, const SkPaint &paint) override=0 |
void | onDrawPoints (SkCanvas::PointMode mode, size_t count, const SkPoint pts[], const SkPaint &paint) override=0 |
void | onDrawEdgeAAQuad (const SkRect &rect, const SkPoint clip[4], SkCanvas::QuadAAFlags aaFlags, const SkColor4f &color, SkBlendMode mode) override=0 |
void | onDrawAnnotation (const SkRect &rect, const char key[], SkData *value) override=0 |
void | onDrawShadowRec (const SkPath &, const SkDrawShadowRec &) override=0 |
void | onDrawDrawable (SkDrawable *drawable, const SkMatrix *matrix) override=0 |
void | onDrawPicture (const SkPicture *picture, const SkMatrix *matrix, const SkPaint *paint) override=0 |
Protected Member Functions inherited from SkNWayCanvas | |
void | willSave () override |
SaveLayerStrategy | getSaveLayerStrategy (const SaveLayerRec &) override |
bool | onDoSaveBehind (const SkRect *) override |
void | willRestore () override |
void | didConcat44 (const SkM44 &) override |
void | didSetM44 (const SkM44 &) override |
void | didScale (SkScalar, SkScalar) override |
void | didTranslate (SkScalar, SkScalar) override |
void | onDrawDRRect (const SkRRect &, const SkRRect &, const SkPaint &) override |
void | onDrawGlyphRunList (const sktext::GlyphRunList &, const SkPaint &) override |
void | onDrawTextBlob (const SkTextBlob *blob, SkScalar x, SkScalar y, const SkPaint &paint) override |
void | onDrawSlug (const sktext::gpu::Slug *slug, const SkPaint &paint) override |
void | onDrawPatch (const SkPoint cubics[12], const SkColor colors[4], const SkPoint texCoords[4], SkBlendMode, const SkPaint &paint) override |
void | onDrawPaint (const SkPaint &) override |
void | onDrawBehind (const SkPaint &) override |
void | onDrawPoints (PointMode, size_t count, const SkPoint pts[], const SkPaint &) override |
void | onDrawRect (const SkRect &, const SkPaint &) override |
void | onDrawRegion (const SkRegion &, const SkPaint &) override |
void | onDrawOval (const SkRect &, const SkPaint &) override |
void | onDrawArc (const SkRect &, SkScalar, SkScalar, bool, const SkPaint &) override |
void | onDrawRRect (const SkRRect &, const SkPaint &) override |
void | onDrawPath (const SkPath &, const SkPaint &) override |
void | onDrawImage2 (const SkImage *, SkScalar, SkScalar, const SkSamplingOptions &, const SkPaint *) override |
void | onDrawImageRect2 (const SkImage *, const SkRect &, const SkRect &, const SkSamplingOptions &, const SkPaint *, SrcRectConstraint) override |
void | onDrawImageLattice2 (const SkImage *, const Lattice &, const SkRect &, SkFilterMode, const SkPaint *) override |
void | onDrawAtlas2 (const SkImage *, const SkRSXform[], const SkRect[], const SkColor[], int, SkBlendMode, const SkSamplingOptions &, const SkRect *, const SkPaint *) override |
void | onDrawVerticesObject (const SkVertices *, SkBlendMode, const SkPaint &) override |
void | onDrawShadowRec (const SkPath &, const SkDrawShadowRec &) override |
void | onClipRect (const SkRect &, SkClipOp, ClipEdgeStyle) override |
void | onClipRRect (const SkRRect &, SkClipOp, ClipEdgeStyle) override |
void | onClipPath (const SkPath &, SkClipOp, ClipEdgeStyle) override |
void | onClipShader (sk_sp< SkShader >, SkClipOp) override |
void | onClipRegion (const SkRegion &, SkClipOp) override |
void | onResetClip () override |
void | onDrawPicture (const SkPicture *, const SkMatrix *, const SkPaint *) override |
void | onDrawDrawable (SkDrawable *, const SkMatrix *) override |
void | onDrawAnnotation (const SkRect &, const char[], SkData *) override |
void | onDrawEdgeAAQuad (const SkRect &, const SkPoint[4], QuadAAFlags, const SkColor4f &, SkBlendMode) override |
void | onDrawEdgeAAImageSet2 (const ImageSetEntry[], int count, const SkPoint[], const SkMatrix[], const SkSamplingOptions &, const SkPaint *, SrcRectConstraint) override |
void | onDrawPaint (const SkPaint &paint) override=0 |
void | onDrawBehind (const SkPaint &) override |
void | onDrawRect (const SkRect &rect, const SkPaint &paint) override=0 |
void | onDrawRRect (const SkRRect &rrect, const SkPaint &paint) override=0 |
void | onDrawDRRect (const SkRRect &outer, const SkRRect &inner, const SkPaint &paint) override=0 |
void | onDrawOval (const SkRect &rect, const SkPaint &paint) override=0 |
void | onDrawArc (const SkRect &rect, SkScalar startAngle, SkScalar sweepAngle, bool useCenter, const SkPaint &paint) override=0 |
void | onDrawPath (const SkPath &path, const SkPaint &paint) override=0 |
void | onDrawRegion (const SkRegion ®ion, const SkPaint &paint) override=0 |
void | onDrawTextBlob (const SkTextBlob *blob, SkScalar x, SkScalar y, const SkPaint &paint) override=0 |
void | onDrawPatch (const SkPoint cubics[12], const SkColor colors[4], const SkPoint texCoords[4], SkBlendMode mode, const SkPaint &paint) override=0 |
void | onDrawPoints (SkCanvas::PointMode mode, size_t count, const SkPoint pts[], const SkPaint &paint) override=0 |
void | onDrawEdgeAAQuad (const SkRect &rect, const SkPoint clip[4], SkCanvas::QuadAAFlags aaFlags, const SkColor4f &color, SkBlendMode mode) override=0 |
void | onDrawAnnotation (const SkRect &rect, const char key[], SkData *value) override=0 |
void | onDrawShadowRec (const SkPath &, const SkDrawShadowRec &) override=0 |
void | onDrawDrawable (SkDrawable *drawable, const SkMatrix *matrix) override=0 |
void | onDrawPicture (const SkPicture *picture, const SkMatrix *matrix, const SkPaint *paint) override=0 |
SaveLayerStrategy | getSaveLayerStrategy (const SaveLayerRec &rec) override |
bool | onDoSaveBehind (const SkRect *) override |
void | onDrawAnnotation (const SkRect &, const char[], SkData *) override |
void | onDrawDRRect (const SkRRect &, const SkRRect &, const SkPaint &) override |
void | onDrawDrawable (SkDrawable *, const SkMatrix *) override |
void | onDrawTextBlob (const SkTextBlob *, SkScalar, SkScalar, const SkPaint &) override |
void | onDrawPatch (const SkPoint[12], const SkColor[4], const SkPoint[4], SkBlendMode, const SkPaint &) override |
void | onDrawPaint (const SkPaint &) override |
void | onDrawBehind (const SkPaint &) override |
void | onDrawPoints (PointMode, size_t, const SkPoint[], const SkPaint &) override |
void | onDrawRect (const SkRect &, const SkPaint &) override |
void | onDrawRegion (const SkRegion &, const SkPaint &) override |
void | onDrawOval (const SkRect &, const SkPaint &) override |
void | onDrawArc (const SkRect &, SkScalar, SkScalar, bool, const SkPaint &) override |
void | onDrawRRect (const SkRRect &, const SkPaint &) override |
void | onDrawPath (const SkPath &, const SkPaint &) override |
void | onDrawImage2 (const SkImage *, SkScalar, SkScalar, const SkSamplingOptions &, const SkPaint *) override |
void | onDrawImageRect2 (const SkImage *, const SkRect &, const SkRect &, const SkSamplingOptions &, const SkPaint *, SrcRectConstraint) override |
void | onDrawImageLattice2 (const SkImage *, const Lattice &, const SkRect &, SkFilterMode, const SkPaint *) override |
void | onDrawAtlas2 (const SkImage *, const SkRSXform[], const SkRect[], const SkColor[], int, SkBlendMode, const SkSamplingOptions &, const SkRect *, const SkPaint *) override |
void | onDrawVerticesObject (const SkVertices *, SkBlendMode, const SkPaint &) override |
void | onDrawShadowRec (const SkPath &, const SkDrawShadowRec &) override |
void | onDrawPicture (const SkPicture *, const SkMatrix *, const SkPaint *) override |
void | onDrawEdgeAAQuad (const SkRect &, const SkPoint[4], QuadAAFlags, const SkColor4f &, SkBlendMode) override |
void | onDrawEdgeAAImageSet2 (const ImageSetEntry[], int, const SkPoint[], const SkMatrix[], const SkSamplingOptions &, const SkPaint *, SrcRectConstraint) override |
void | onDrawPaint (const SkPaint &paint) override=0 |
void | onDrawBehind (const SkPaint &) override |
void | onDrawRect (const SkRect &rect, const SkPaint &paint) override=0 |
void | onDrawRRect (const SkRRect &rrect, const SkPaint &paint) override=0 |
void | onDrawDRRect (const SkRRect &outer, const SkRRect &inner, const SkPaint &paint) override=0 |
void | onDrawOval (const SkRect &rect, const SkPaint &paint) override=0 |
void | onDrawArc (const SkRect &rect, SkScalar startAngle, SkScalar sweepAngle, bool useCenter, const SkPaint &paint) override=0 |
void | onDrawPath (const SkPath &path, const SkPaint &paint) override=0 |
void | onDrawRegion (const SkRegion ®ion, const SkPaint &paint) override=0 |
void | onDrawTextBlob (const SkTextBlob *blob, SkScalar x, SkScalar y, const SkPaint &paint) override=0 |
void | onDrawPatch (const SkPoint cubics[12], const SkColor colors[4], const SkPoint texCoords[4], SkBlendMode mode, const SkPaint &paint) override=0 |
void | onDrawPoints (SkCanvas::PointMode mode, size_t count, const SkPoint pts[], const SkPaint &paint) override=0 |
void | onDrawEdgeAAQuad (const SkRect &rect, const SkPoint clip[4], SkCanvas::QuadAAFlags aaFlags, const SkColor4f &color, SkBlendMode mode) override=0 |
void | onDrawAnnotation (const SkRect &rect, const char key[], SkData *value) override=0 |
void | onDrawShadowRec (const SkPath &, const SkDrawShadowRec &) override=0 |
void | onDrawDrawable (SkDrawable *drawable, const SkMatrix *matrix) override=0 |
void | onDrawPicture (const SkPicture *picture, const SkMatrix *matrix, const SkPaint *paint) override=0 |
Protected Member Functions inherited from SkCanvas | |
virtual sk_sp< SkSurface > | onNewSurface (const SkImageInfo &info, const SkSurfaceProps &props) |
virtual bool | onPeekPixels (SkPixmap *pixmap) |
virtual bool | onAccessTopLayerPixels (SkPixmap *pixmap) |
virtual SkImageInfo | onImageInfo () const |
virtual bool | onGetProps (SkSurfaceProps *props, bool top) const |
virtual void | willSave () |
virtual SaveLayerStrategy | getSaveLayerStrategy (const SaveLayerRec &) |
virtual bool | onDoSaveBehind (const SkRect *) |
virtual void | willRestore () |
virtual void | didRestore () |
virtual void | didConcat44 (const SkM44 &) |
virtual void | didSetM44 (const SkM44 &) |
virtual void | didTranslate (SkScalar, SkScalar) |
virtual void | didScale (SkScalar, SkScalar) |
virtual void | onDrawPaint (const SkPaint &paint) |
virtual void | onDrawBehind (const SkPaint &paint) |
virtual void | onDrawRect (const SkRect &rect, const SkPaint &paint) |
virtual void | onDrawRRect (const SkRRect &rrect, const SkPaint &paint) |
virtual void | onDrawDRRect (const SkRRect &outer, const SkRRect &inner, const SkPaint &paint) |
virtual void | onDrawOval (const SkRect &rect, const SkPaint &paint) |
virtual void | onDrawArc (const SkRect &rect, SkScalar startAngle, SkScalar sweepAngle, bool useCenter, const SkPaint &paint) |
virtual void | onDrawPath (const SkPath &path, const SkPaint &paint) |
virtual void | onDrawRegion (const SkRegion ®ion, const SkPaint &paint) |
virtual void | onDrawTextBlob (const SkTextBlob *blob, SkScalar x, SkScalar y, const SkPaint &paint) |
virtual void | onDrawGlyphRunList (const sktext::GlyphRunList &glyphRunList, const SkPaint &paint) |
virtual void | onDrawPatch (const SkPoint cubics[12], const SkColor colors[4], const SkPoint texCoords[4], SkBlendMode mode, const SkPaint &paint) |
virtual void | onDrawPoints (PointMode mode, size_t count, const SkPoint pts[], const SkPaint &paint) |
virtual void | onDrawImage2 (const SkImage *, SkScalar dx, SkScalar dy, const SkSamplingOptions &, const SkPaint *) |
virtual void | onDrawImageRect2 (const SkImage *, const SkRect &src, const SkRect &dst, const SkSamplingOptions &, const SkPaint *, SrcRectConstraint) |
virtual void | onDrawImageLattice2 (const SkImage *, const Lattice &, const SkRect &dst, SkFilterMode, const SkPaint *) |
virtual void | onDrawAtlas2 (const SkImage *, const SkRSXform[], const SkRect src[], const SkColor[], int count, SkBlendMode, const SkSamplingOptions &, const SkRect *cull, const SkPaint *) |
virtual void | onDrawEdgeAAImageSet2 (const ImageSetEntry imageSet[], int count, const SkPoint dstClips[], const SkMatrix preViewMatrices[], const SkSamplingOptions &, const SkPaint *, SrcRectConstraint) |
virtual void | onDrawVerticesObject (const SkVertices *vertices, SkBlendMode mode, const SkPaint &paint) |
virtual void | onDrawMesh (const SkMesh &, sk_sp< SkBlender >, const SkPaint &) |
virtual void | onDrawAnnotation (const SkRect &rect, const char key[], SkData *value) |
virtual void | onDrawShadowRec (const SkPath &, const SkDrawShadowRec &) |
virtual void | onDrawDrawable (SkDrawable *drawable, const SkMatrix *matrix) |
virtual void | onDrawPicture (const SkPicture *picture, const SkMatrix *matrix, const SkPaint *paint) |
virtual void | onDrawEdgeAAQuad (const SkRect &rect, const SkPoint clip[4], QuadAAFlags aaFlags, const SkColor4f &color, SkBlendMode mode) |
virtual void | onClipRect (const SkRect &rect, SkClipOp op, ClipEdgeStyle edgeStyle) |
virtual void | onClipRRect (const SkRRect &rrect, SkClipOp op, ClipEdgeStyle edgeStyle) |
virtual void | onClipPath (const SkPath &path, SkClipOp op, ClipEdgeStyle edgeStyle) |
virtual void | onClipShader (sk_sp< SkShader >, SkClipOp) |
virtual void | onClipRegion (const SkRegion &deviceRgn, SkClipOp op) |
virtual void | onResetClip () |
virtual void | onDiscard () |
virtual sk_sp< sktext::gpu::Slug > | onConvertGlyphRunListToSlug (const sktext::GlyphRunList &glyphRunList, const SkPaint &paint) |
virtual void | onDrawSlug (const sktext::gpu::Slug *slug, const SkPaint &paint) |
SkCanvas (const SkIRect &bounds) | |
Protected Attributes inherited from SkNWayCanvas | |
SkTDArray< SkCanvas * > | fList |
Definition at line 1496 of file Viewer.cpp.
|
inline |
Definition at line 1498 of file Viewer.cpp.
|
inline |
Definition at line 1591 of file Viewer.cpp.
|
inline |
Definition at line 1508 of file Viewer.cpp.
|
inlineoverridevirtual |
Reimplemented from SkPaintFilterCanvas.
Definition at line 1576 of file Viewer.cpp.
|
inlineoverridevirtual |
Reimplemented from SkPaintFilterCanvas.
Definition at line 1569 of file Viewer.cpp.
|
inlineoverridevirtual |
Called with the paint that will be used to draw the specified type. The implementation may modify the paint as they wish.
The result bool is used to determine whether the draw op is to be executed (true) or skipped (false).
Note: The base implementation calls onFilter() for top-level/explicit paints only. To also filter encapsulated paints (e.g. SkPicture, SkTextBlob), clients may need to override the relevant methods (i.e. drawPicture, drawTextBlob).
Implements SkPaintFilterCanvas.
Definition at line 1632 of file Viewer.cpp.
SkFont* OveridePaintFilterCanvas::fFont |
Definition at line 1684 of file Viewer.cpp.
Viewer::SkFontFields* OveridePaintFilterCanvas::fFontOverrides |
Definition at line 1685 of file Viewer.cpp.
SkPaint* OveridePaintFilterCanvas::fPaint |
Definition at line 1682 of file Viewer.cpp.
Viewer::SkPaintFields* OveridePaintFilterCanvas::fPaintOverrides |
Definition at line 1683 of file Viewer.cpp.