|
| | CmdRecordCanvas (LayerCmds *dst, LayerMap *offscreenLayers, const SkIRect *clipRect=nullptr) |
| |
| | ~CmdRecordCanvas () override |
| |
| | SkCanvas () |
| |
| | SkCanvas (int width, int height, const SkSurfaceProps *props=nullptr) |
| |
| | SkCanvas (sk_sp< SkDevice > device) |
| |
| | SkCanvas (const SkBitmap &bitmap) |
| |
| | SkCanvas (const SkBitmap &bitmap, const SkSurfaceProps &props) |
| |
| virtual | ~SkCanvas () |
| |
| SkImageInfo | imageInfo () const |
| |
| bool | getProps (SkSurfaceProps *props) const |
| |
| SkSurfaceProps | getBaseProps () const |
| |
| SkSurfaceProps | getTopProps () const |
| |
| virtual SkISize | getBaseLayerSize () const |
| |
| sk_sp< SkSurface > | makeSurface (const SkImageInfo &info, const SkSurfaceProps *props=nullptr) |
| |
| virtual GrRecordingContext * | recordingContext () const |
| |
| virtual skgpu::graphite::Recorder * | recorder () const |
| |
| SkSurface * | getSurface () const |
| |
| void * | accessTopLayerPixels (SkImageInfo *info, size_t *rowBytes, SkIPoint *origin=nullptr) |
| |
| SkRasterHandleAllocator::Handle | accessTopRasterHandle () const |
| |
| bool | peekPixels (SkPixmap *pixmap) |
| |
| bool | readPixels (const SkImageInfo &dstInfo, void *dstPixels, size_t dstRowBytes, int srcX, int srcY) |
| |
| bool | readPixels (const SkPixmap &pixmap, int srcX, int srcY) |
| |
| bool | readPixels (const SkBitmap &bitmap, int srcX, int srcY) |
| |
| bool | writePixels (const SkImageInfo &info, const void *pixels, size_t rowBytes, int x, int y) |
| |
| bool | writePixels (const SkBitmap &bitmap, int x, int y) |
| |
| int | save () |
| |
| int | saveLayer (const SkRect *bounds, const SkPaint *paint) |
| |
| int | saveLayer (const SkRect &bounds, const SkPaint *paint) |
| |
| int | saveLayerAlphaf (const SkRect *bounds, float alpha) |
| |
| int | saveLayerAlpha (const SkRect *bounds, U8CPU alpha) |
| |
| int | saveLayer (const SaveLayerRec &layerRec) |
| |
| void | restore () |
| |
| int | getSaveCount () const |
| |
| void | restoreToCount (int saveCount) |
| |
| void | translate (SkScalar dx, SkScalar dy) |
| |
| void | scale (SkScalar sx, SkScalar sy) |
| |
| void | rotate (SkScalar degrees) |
| |
| void | rotate (SkScalar degrees, SkScalar px, SkScalar py) |
| |
| void | skew (SkScalar sx, SkScalar sy) |
| |
| void | concat (const SkMatrix &matrix) |
| |
| void | concat (const SkM44 &) |
| |
| void | setMatrix (const SkM44 &matrix) |
| |
| void | setMatrix (const SkMatrix &matrix) |
| |
| void | resetMatrix () |
| |
| void | clipRect (const SkRect &rect, SkClipOp op, bool doAntiAlias) |
| |
| void | clipRect (const SkRect &rect, SkClipOp op) |
| |
| void | clipRect (const SkRect &rect, bool doAntiAlias=false) |
| |
| void | clipIRect (const SkIRect &irect, SkClipOp op=SkClipOp::kIntersect) |
| |
| void | androidFramework_setDeviceClipRestriction (const SkIRect &rect) |
| |
| void | clipRRect (const SkRRect &rrect, SkClipOp op, bool doAntiAlias) |
| |
| void | clipRRect (const SkRRect &rrect, SkClipOp op) |
| |
| void | clipRRect (const SkRRect &rrect, bool doAntiAlias=false) |
| |
| void | clipPath (const SkPath &path, SkClipOp op, bool doAntiAlias) |
| |
| void | clipPath (const SkPath &path, SkClipOp op) |
| |
| void | clipPath (const SkPath &path, bool doAntiAlias=false) |
| |
| void | clipShader (sk_sp< SkShader >, SkClipOp=SkClipOp::kIntersect) |
| |
| void | clipRegion (const SkRegion &deviceRgn, SkClipOp op=SkClipOp::kIntersect) |
| |
| bool | quickReject (const SkRect &rect) const |
| |
| bool | quickReject (const SkPath &path) const |
| |
| SkRect | getLocalClipBounds () const |
| |
| bool | getLocalClipBounds (SkRect *bounds) const |
| |
| SkIRect | getDeviceClipBounds () const |
| |
| bool | getDeviceClipBounds (SkIRect *bounds) const |
| |
| void | drawColor (SkColor color, SkBlendMode mode=SkBlendMode::kSrcOver) |
| |
| void | drawColor (const SkColor4f &color, SkBlendMode mode=SkBlendMode::kSrcOver) |
| |
| void | clear (SkColor color) |
| |
| void | clear (const SkColor4f &color) |
| |
| void | discard () |
| |
| void | drawPaint (const SkPaint &paint) |
| |
| void | drawPoints (PointMode mode, size_t count, const SkPoint pts[], const SkPaint &paint) |
| |
| void | drawPoint (SkScalar x, SkScalar y, const SkPaint &paint) |
| |
| void | drawPoint (SkPoint p, const SkPaint &paint) |
| |
| void | drawLine (SkScalar x0, SkScalar y0, SkScalar x1, SkScalar y1, const SkPaint &paint) |
| |
| void | drawLine (SkPoint p0, SkPoint p1, const SkPaint &paint) |
| |
| void | drawRect (const SkRect &rect, const SkPaint &paint) |
| |
| void | drawIRect (const SkIRect &rect, const SkPaint &paint) |
| |
| void | drawRegion (const SkRegion ®ion, const SkPaint &paint) |
| |
| void | drawOval (const SkRect &oval, const SkPaint &paint) |
| |
| void | drawRRect (const SkRRect &rrect, const SkPaint &paint) |
| |
| void | drawDRRect (const SkRRect &outer, const SkRRect &inner, const SkPaint &paint) |
| |
| void | drawCircle (SkScalar cx, SkScalar cy, SkScalar radius, const SkPaint &paint) |
| |
| void | drawCircle (SkPoint center, SkScalar radius, const SkPaint &paint) |
| |
| void | drawArc (const SkRect &oval, SkScalar startAngle, SkScalar sweepAngle, bool useCenter, const SkPaint &paint) |
| |
| void | drawArc (const SkArc &arc, const SkPaint &paint) |
| |
| void | drawRoundRect (const SkRect &rect, SkScalar rx, SkScalar ry, const SkPaint &paint) |
| |
| void | drawPath (const SkPath &path, const SkPaint &paint) |
| |
| void | drawImage (const SkImage *image, SkScalar left, SkScalar top) |
| |
| void | drawImage (const sk_sp< SkImage > &image, SkScalar left, SkScalar top) |
| |
| void | drawImage (const SkImage *, SkScalar x, SkScalar y, const SkSamplingOptions &, const SkPaint *=nullptr) |
| |
| void | drawImage (const sk_sp< SkImage > &image, SkScalar x, SkScalar y, const SkSamplingOptions &sampling, const SkPaint *paint=nullptr) |
| |
| void | drawImageRect (const SkImage *, const SkRect &src, const SkRect &dst, const SkSamplingOptions &, const SkPaint *, SrcRectConstraint) |
| |
| void | drawImageRect (const SkImage *, const SkRect &dst, const SkSamplingOptions &, const SkPaint *=nullptr) |
| |
| void | drawImageRect (const sk_sp< SkImage > &image, const SkRect &src, const SkRect &dst, const SkSamplingOptions &sampling, const SkPaint *paint, SrcRectConstraint constraint) |
| |
| void | drawImageRect (const sk_sp< SkImage > &image, const SkRect &dst, const SkSamplingOptions &sampling, const SkPaint *paint=nullptr) |
| |
| void | drawImageNine (const SkImage *image, const SkIRect ¢er, const SkRect &dst, SkFilterMode filter, const SkPaint *paint=nullptr) |
| |
| void | drawImageLattice (const SkImage *image, const Lattice &lattice, const SkRect &dst, SkFilterMode filter, const SkPaint *paint=nullptr) |
| |
| void | drawImageLattice (const SkImage *image, const Lattice &lattice, const SkRect &dst) |
| |
| void | experimental_DrawEdgeAAQuad (const SkRect &rect, const SkPoint clip[4], QuadAAFlags aaFlags, const SkColor4f &color, SkBlendMode mode) |
| |
| void | experimental_DrawEdgeAAQuad (const SkRect &rect, const SkPoint clip[4], QuadAAFlags aaFlags, SkColor color, SkBlendMode mode) |
| |
| void | experimental_DrawEdgeAAImageSet (const ImageSetEntry imageSet[], int cnt, const SkPoint dstClips[], const SkMatrix preViewMatrices[], const SkSamplingOptions &, const SkPaint *paint=nullptr, SrcRectConstraint constraint=kStrict_SrcRectConstraint) |
| |
| void | drawSimpleText (const void *text, size_t byteLength, SkTextEncoding encoding, SkScalar x, SkScalar y, const SkFont &font, const SkPaint &paint) |
| |
| void | drawString (const char str[], SkScalar x, SkScalar y, const SkFont &font, const SkPaint &paint) |
| |
| void | drawString (const SkString &str, SkScalar x, SkScalar y, const SkFont &font, const SkPaint &paint) |
| |
| void | drawGlyphs (int count, const SkGlyphID glyphs[], const SkPoint positions[], const uint32_t clusters[], int textByteCount, const char utf8text[], SkPoint origin, const SkFont &font, const SkPaint &paint) |
| |
| void | drawGlyphs (int count, const SkGlyphID glyphs[], const SkPoint positions[], SkPoint origin, const SkFont &font, const SkPaint &paint) |
| |
| void | drawGlyphs (int count, const SkGlyphID glyphs[], const SkRSXform xforms[], SkPoint origin, const SkFont &font, const SkPaint &paint) |
| |
| void | drawTextBlob (const SkTextBlob *blob, SkScalar x, SkScalar y, const SkPaint &paint) |
| |
| void | drawTextBlob (const sk_sp< SkTextBlob > &blob, SkScalar x, SkScalar y, const SkPaint &paint) |
| |
| void | drawPicture (const SkPicture *picture) |
| |
| void | drawPicture (const sk_sp< SkPicture > &picture) |
| |
| void | drawPicture (const SkPicture *picture, const SkMatrix *matrix, const SkPaint *paint) |
| |
| void | drawPicture (const sk_sp< SkPicture > &picture, const SkMatrix *matrix, const SkPaint *paint) |
| |
| void | drawVertices (const SkVertices *vertices, SkBlendMode mode, const SkPaint &paint) |
| |
| void | drawVertices (const sk_sp< SkVertices > &vertices, SkBlendMode mode, const SkPaint &paint) |
| |
| void | drawMesh (const SkMesh &mesh, sk_sp< SkBlender > blender, const SkPaint &paint) |
| |
| void | drawPatch (const SkPoint cubics[12], const SkColor colors[4], const SkPoint texCoords[4], SkBlendMode mode, const SkPaint &paint) |
| |
| void | drawAtlas (const SkImage *atlas, const SkRSXform xform[], const SkRect tex[], const SkColor colors[], int count, SkBlendMode mode, const SkSamplingOptions &sampling, const SkRect *cullRect, const SkPaint *paint) |
| |
| void | drawDrawable (SkDrawable *drawable, const SkMatrix *matrix=nullptr) |
| |
| void | drawDrawable (SkDrawable *drawable, SkScalar x, SkScalar y) |
| |
| void | drawAnnotation (const SkRect &rect, const char key[], SkData *value) |
| |
| void | drawAnnotation (const SkRect &rect, const char key[], const sk_sp< SkData > &value) |
| |
| virtual bool | isClipEmpty () const |
| |
| virtual bool | isClipRect () const |
| |
| SkM44 | getLocalToDevice () const |
| |
| SkMatrix | getLocalToDeviceAs3x3 () const |
| |
| SkMatrix | getTotalMatrix () const |
| |
| void | temporary_internal_getRgnClip (SkRegion *region) |
| |
| void | private_draw_shadow_rec (const SkPath &, const SkDrawShadowRec &) |
| |
|
| void | onDrawPaint (const SkPaint &paint) override |
| |
| void | onDrawBehind (const SkPaint &paint) override |
| |
| void | onDrawRect (const SkRect &rect, const SkPaint &paint) override |
| |
| void | onDrawRRect (const SkRRect &rrect, const SkPaint &paint) override |
| |
| void | onDrawDRRect (const SkRRect &outer, const SkRRect &inner, const SkPaint &paint) override |
| |
| void | onDrawOval (const SkRect &rect, const SkPaint &paint) override |
| |
| void | onDrawArc (const SkRect &rect, SkScalar startAngle, SkScalar sweepAngle, bool useCenter, const SkPaint &paint) override |
| |
| void | onDrawPath (const SkPath &path, const SkPaint &paint) override |
| |
| void | onDrawRegion (const SkRegion ®ion, const SkPaint &paint) override |
| |
| void | onDrawTextBlob (const SkTextBlob *blob, SkScalar x, SkScalar y, const SkPaint &paint) override |
| |
| void | onDrawPatch (const SkPoint cubics[12], const SkColor colors[4], const SkPoint texCoords[4], SkBlendMode mode, const SkPaint &paint) override |
| |
| void | onDrawPoints (SkCanvas::PointMode mode, size_t count, const SkPoint pts[], const SkPaint &paint) override |
| |
| void | onDrawImage2 (const SkImage *image, SkScalar dx, SkScalar dy, const SkSamplingOptions &sampling, const SkPaint *paint) override |
| |
| void | onDrawImageRect2 (const SkImage *image, const SkRect &src, const SkRect &dst, const SkSamplingOptions &sampling, const SkPaint *paint, SrcRectConstraint constraint) override |
| |
| void | onDrawImageLattice2 (const SkImage *image, const Lattice &lattice, const SkRect &dst, SkFilterMode mode, const SkPaint *paint) override |
| |
| void | onDrawAtlas2 (const SkImage *image, const SkRSXform rsxForms[], const SkRect src[], const SkColor colors[], int count, SkBlendMode mode, const SkSamplingOptions &sampling, const SkRect *cull, const SkPaint *paint) override |
| |
| void | onDrawEdgeAAImageSet2 (const ImageSetEntry imageSet[], int count, const SkPoint dstClips[], const SkMatrix preViewMatrices[], const SkSamplingOptions &sampling, const SkPaint *paint, SrcRectConstraint constraint) override |
| |
| void | onDrawEdgeAAQuad (const SkRect &rect, const SkPoint clip[4], SkCanvas::QuadAAFlags aaFlags, const SkColor4f &color, SkBlendMode mode) override |
| |
| void | onDrawAnnotation (const SkRect &rect, const char key[], SkData *value) override |
| |
| void | onDrawShadowRec (const SkPath &path, const SkDrawShadowRec &rec) override |
| |
| void | onDrawDrawable (SkDrawable *drawable, const SkMatrix *matrix) override |
| |
| void | onDrawPicture (const SkPicture *picture, const SkMatrix *matrix, const SkPaint *paint) 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 |
| |
| 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) |
| |