/third_party/skia/include/core/ |
H A D | SkOverdrawCanvas.h | 24 void onDrawTextBlob(const SkTextBlob*, SkScalar, SkScalar, const SkPaint&) override; 25 void onDrawGlyphRunList(const SkGlyphRunList& glyphRunList, const SkPaint& paint) override; 27 const SkPaint&) override; 28 void onDrawPaint(const SkPaint&) override; 29 void onDrawBehind(const SkPaint& paint) override; 30 void onDrawRect(const SkRect&, const SkPaint&) override; 31 void onDrawRegion(const SkRegion&, const SkPaint&) override; 32 void onDrawOval(const SkRect&, const SkPaint&) override; 33 void onDrawArc(const SkRect&, SkScalar, SkScalar, bool, const SkPaint&) override; 34 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint [all...] |
H A D | SkStrokeRec.h | 11 #include "include/core/SkPaint.h" 24 SkStrokeRec(const SkPaint&, SkPaint::Style, SkScalar resScale = 1); 25 explicit SkStrokeRec(const SkPaint&, SkScalar resScale = 1); 39 SkPaint::Cap getCap() const { return (SkPaint::Cap)fCap; } in getCap() 40 SkPaint::Join getJoin() const { return (SkPaint::Join)fJoin; } in getJoin() 60 void setStrokeParams(SkPaint::Cap cap, SkPaint [all...] |
H A D | SkCanvas.h | 19 #include "include/core/SkPaint.h" 79 SkCanvas and SkPaint together provide the state to draw into SkSurface or SkBaseDevice. 82 of all of clip values in the stack. The SkCanvas draw calls use SkPaint to supply drawing 576 Optional SkPaint paint applies alpha, SkColorFilter, SkImageFilter, and 588 int saveLayer(const SkRect* bounds, const SkPaint* paint); 600 Optional SkPaint paint applies alpha, SkColorFilter, SkImageFilter, and 609 int saveLayer(const SkRect& bounds, const SkPaint* paint) { in saveLayer() 670 SaveLayerRec(const SkRect* bounds, const SkPaint* paint, SaveLayerFlags saveLayerFlags = 0) in SaveLayerRec() 685 SaveLayerRec(const SkRect* bounds, const SkPaint* paint, const SkImageFilter* backdrop, in SaveLayerRec() 693 const SkPaint* fPain [all...] |
H A D | SkCanvasVirtualEnforcer.h | 22 void onDrawPaint(const SkPaint& paint) override = 0; 23 void onDrawBehind(const SkPaint&) override {} // make zero after android updates 24 void onDrawRect(const SkRect& rect, const SkPaint& paint) override = 0; 25 void onDrawRRect(const SkRRect& rrect, const SkPaint& paint) override = 0; 27 const SkPaint& paint) override = 0; 28 void onDrawOval(const SkRect& rect, const SkPaint& paint) override = 0; 30 const SkPaint& paint) override = 0; 31 void onDrawPath(const SkPath& path, const SkPaint& paint) override = 0; 32 void onDrawRegion(const SkRegion& region, const SkPaint& paint) override = 0; 35 const SkPaint [all...] |
/third_party/skia/src/core/ |
H A D | SkPaint.cpp | 8 #include "include/core/SkPaint.h" 45 SkPaint::SkPaint() in SkPaint() function in SkPaint 51 (unsigned)SkPaint::kDefault_Cap, // fCapType 52 (unsigned)SkPaint::kDefault_Join, // fJoinType 53 (unsigned)SkPaint::kFill_Style, // fStyle 59 SkPaint::SkPaint(const SkColor4f& color, SkColorSpace* colorSpace) : SkPaint() { in SkPaint() function in SkPaint 63 SkPaint [all...] |
H A D | SkStrokeRec.cpp | 18 fCap = SkPaint::kDefault_Cap; in SkStrokeRec() 19 fJoin = SkPaint::kDefault_Join; in SkStrokeRec() 23 SkStrokeRec::SkStrokeRec(const SkPaint& paint, SkScalar resScale) { in SkStrokeRec() 27 SkStrokeRec::SkStrokeRec(const SkPaint& paint, SkPaint::Style styleOverride, SkScalar resScale) { in SkStrokeRec() 31 void SkStrokeRec::init(const SkPaint& paint, SkPaint::Style style, SkScalar resScale) { in init() 35 case SkPaint::kFill_Style: in init() 39 case SkPaint::kStroke_Style: in init() 43 case SkPaint in init() [all...] |
H A D | SkDraw.h | 14 #include "include/core/SkPaint.h" 37 void drawPaint(const SkPaint&) const; 39 const SkPaint&, SkBaseDevice*) const; 40 void drawRect(const SkRect& prePaintRect, const SkPaint&, const SkMatrix* paintMatrix, 42 void drawRect(const SkRect& rect, const SkPaint& paint) const { in drawRect() 45 void drawRRect(const SkRRect&, const SkPaint&) const; 55 void drawPath(const SkPath& path, const SkPaint& paint, in drawPath() 62 const SkSamplingOptions&, const SkPaint&) const override; 63 void drawSprite(const SkBitmap&, int x, int y, const SkPaint&) const; 65 const SkPaint [all...] |
H A D | SkOverdrawCanvas.cpp | 53 void paintPaths(SkDrawableGlyphBuffer*, SkScalar, SkPoint, const SkPaint&) const override {} 55 void paintMasks(SkDrawableGlyphBuffer* drawables, const SkPaint& paint) const override { 60 fOverdrawCanvas->drawRect(SkRect::Make(mask.fBounds), SkPaint()); 65 const SkSamplingOptions&, const SkPaint&) const override {} 67 void onDrawGlyphRunList(const SkGlyphRunList& glyphRunList, const SkPaint& paint) override { 79 const SkTextBlob* blob, SkScalar x, SkScalar y, const SkPaint& paint) { in onDrawTextBlob() 86 const SkGlyphRunList& glyphRunList, const SkPaint& paint) { in onDrawGlyphRunList() 96 const SkPaint&) { in onDrawPatch() 100 void SkOverdrawCanvas::onDrawPaint(const SkPaint& paint) { in onDrawPaint() 108 void SkOverdrawCanvas::onDrawBehind(const SkPaint 94 onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], const SkPoint texCoords[4], SkBlendMode blendMode, const SkPaint&) onDrawPatch() argument 166 onDrawImage2(const SkImage* image, SkScalar x, SkScalar y, const SkSamplingOptions&, const SkPaint*) onDrawImage2() argument 171 onDrawImageRect2(const SkImage* image, const SkRect& src, const SkRect& dst, const SkSamplingOptions&, const SkPaint*, SrcRectConstraint) onDrawImageRect2() argument 176 onDrawImageLattice2(const SkImage* image, const Lattice& lattice, const SkRect& dst, SkFilterMode, const SkPaint*) onDrawImageLattice2() argument 201 onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) onDrawPicture() argument [all...] |
H A D | SkRecorder.h | 70 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) override; 75 const SkPaint& paint) override; 76 void onDrawGlyphRunList(const SkGlyphRunList& glyphRunList, const SkPaint& paint) override; 79 const SkPaint& paint) override; 81 void onDrawPaint(const SkPaint&) override; 82 void onDrawBehind(const SkPaint&) override; 83 void onDrawPoints(PointMode, size_t count, const SkPoint pts[], const SkPaint&) override; 84 void onDrawRect(const SkRect&, const SkPaint&) override; 85 void onDrawRegion(const SkRegion&, const SkPaint&) override; 86 void onDrawOval(const SkRect&, const SkPaint [all...] |
/third_party/skia/gm/ |
H A D | quadpaths.cpp | 12 #include "include/core/SkPaint.h" 38 const SkRect& clip,SkPaint::Cap cap, SkPaint::Join join, in drawPath() 39 SkPaint::Style style, SkPathFillType fill, in drawPath() 42 SkPaint paint; in drawPath() 66 SkPaint::Style fStyle; 70 {SkPaint::kFill_Style, "Fill"}, 71 {SkPaint::kStroke_Style, "Stroke"}, 72 {SkPaint::kStrokeAndFill_Style, "Stroke And Fill"}, 75 SkPaint [all...] |
H A D | cubicpaths.cpp | 13 #include "include/core/SkPaint.h" 37 SkPaint paint; 87 SkPaint framePaint, fillPaint; in drawOne() 88 framePaint.setStyle(SkPaint::kStroke_Style); in drawOne() 127 const SkRect& clip,SkPaint::Cap cap, SkPaint::Join join, in drawPath() 128 SkPaint::Style style, SkPathFillType fill, in drawPath() 131 SkPaint paint; in drawPath() 155 SkPaint::Style fStyle; 159 {SkPaint [all...] |
H A D | linepaths.cpp | 12 #include "include/core/SkPaint.h" 22 const SkRect& clip,SkPaint::Cap cap, SkPaint::Join join, in drawPath() 23 SkPaint::Style style, SkPathFillType fill, in drawPath() 26 SkPaint paint; in drawPath() 50 SkPaint::Style fStyle; in draw() 54 {SkPaint::kFill_Style, "Fill"}, in draw() 55 {SkPaint::kStroke_Style, "Stroke"}, in draw() 56 {SkPaint::kStrokeAndFill_Style, "Stroke And Fill"}, in draw() 59 SkPaint in draw() [all...] |
H A D | strokerect.cpp | 11 #include "include/core/SkPaint.h" 26 SkPaint::Join join, int doFill) { in draw_path() 27 SkPaint paint; in draw_path() 29 paint.setStyle(doFill ? SkPaint::kStrokeAndFill_Style : SkPaint::kStroke_Style); in draw_path() 36 paint.setStyle(SkPaint::kStroke_Style); in draw_path() 42 paint.setStrokeJoin(SkPaint::kMiter_Join); in draw_path() 73 SkPaint paint; 74 paint.setStyle(SkPaint::kStroke_Style); 77 constexpr SkPaint [all...] |
H A D | nonclosedpaths.cpp | 10 #include "include/core/SkPaint.h" 84 constexpr SkPaint::Style kStyle[] = { 85 SkPaint::kStroke_Style, SkPaint::kStrokeAndFill_Style 88 constexpr SkPaint::Cap kCap[] = { 89 SkPaint::kButt_Cap, SkPaint::kRound_Cap, SkPaint::kSquare_Cap 92 constexpr SkPaint::Join kJoin[] = { 93 SkPaint [all...] |
/third_party/skia/include/utils/ |
H A D | SkPaintFilterCanvas.h | 48 virtual bool onFilter(SkPaint& paint) const = 0; 50 void onDrawPaint(const SkPaint&) override; 51 void onDrawBehind(const SkPaint&) override; 52 void onDrawPoints(PointMode, size_t count, const SkPoint pts[], const SkPaint&) override; 53 void onDrawRect(const SkRect&, const SkPaint&) override; 54 void onDrawRRect(const SkRRect&, const SkPaint&) override; 55 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) override; 56 void onDrawRegion(const SkRegion&, const SkPaint&) override; 57 void onDrawOval(const SkRect&, const SkPaint&) override; 58 void onDrawArc(const SkRect&, SkScalar, SkScalar, bool, const SkPaint [all...] |
H A D | SkNWayCanvas.h | 40 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) override; 41 void onDrawGlyphRunList(const SkGlyphRunList&, const SkPaint&) override; 43 const SkPaint& paint) override; 45 const SkPoint texCoords[4], SkBlendMode, const SkPaint& paint) override; 47 void onDrawPaint(const SkPaint&) override; 48 void onDrawBehind(const SkPaint&) override; 49 void onDrawPoints(PointMode, size_t count, const SkPoint pts[], const SkPaint&) override; 50 void onDrawRect(const SkRect&, const SkPaint&) override; 51 void onDrawRegion(const SkRegion&, const SkPaint&) override; 52 void onDrawOval(const SkRect&, const SkPaint [all...] |
H A D | SkNoDrawCanvas.h | 42 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) override {} 44 void onDrawTextBlob(const SkTextBlob*, SkScalar, SkScalar, const SkPaint&) override {} 46 const SkPaint&) override {} 48 void onDrawPaint(const SkPaint&) override {} 49 void onDrawBehind(const SkPaint&) override {} 50 void onDrawPoints(PointMode, size_t, const SkPoint[], const SkPaint&) override {} 51 void onDrawRect(const SkRect&, const SkPaint&) override {} 52 void onDrawRegion(const SkRegion&, const SkPaint&) override {} 53 void onDrawOval(const SkRect&, const SkPaint&) override {} 54 void onDrawArc(const SkRect&, SkScalar, SkScalar, bool, const SkPaint [all...] |
/third_party/skia/bench/ |
H A D | BezierBench.cpp | 10 #include "include/core/SkPaint.h" 16 SkPaint fPaint; 26 const SkPaint& paint = rec->fPaint; in draw_quad() 38 const SkPaint& paint = rec->fPaint; in draw_cubic() 49 SkPaint::Cap fCap; 50 SkPaint::Join fJoin; 55 BezierBench(SkPaint::Cap c, SkPaint::Join j, SkScalar w, DrawProc proc) { in BezierBench() 85 fRec.fPaint.setStyle(SkPaint::kStroke_Style); 96 DEF_BENCH( return new BezierBench(SkPaint [all...] |
/third_party/skia/tests/ |
H A D | StrokeTest.cpp | 8 #include "include/core/SkPaint.h" 36 SkPaint paint; in test_strokecubic() 38 paint.setStyle(SkPaint::kStroke_Style); in test_strokecubic() 54 SkPaint paint; in test_strokerect() 56 paint.setStyle(SkPaint::kStroke_Style); in test_strokerect() 64 static const SkPaint::Join joins[] = { in test_strokerect() 65 SkPaint::kMiter_Join, SkPaint::kRound_Join, SkPaint::kBevel_Join in test_strokerect() 77 bool isMiter = SkPaint in test_strokerect() [all...] |
H A D | PaintTest.cpp | 24 SkPaint paint; in DEF_TEST() 26 paint.setStyle(SkPaint::kStrokeAndFill_Style); in DEF_TEST() 33 SkPaint copiedPaint = paint; in DEF_TEST() 41 SkPaint cleanPaint; in DEF_TEST() 52 SkPaint paint; in DEF_TEST() 66 paint.setStyle(SkPaint::kStroke_Style); in DEF_TEST() 73 SkScalar inset = paint.getStrokeJoin() == SkPaint::kMiter_Join ? in DEF_TEST() 83 const SkPaint::Cap caps[] = { in DEF_TEST() 84 SkPaint::kButt_Cap, in DEF_TEST() 85 SkPaint in DEF_TEST() [all...] |
/third_party/skia/src/pdf/ |
H A D | SkPDFDevice.h | 14 #include "include/core/SkPaint.h" 72 void drawPaint(const SkPaint& paint) override; 75 const SkPaint& paint) override; 76 void drawRect(const SkRect& r, const SkPaint& paint) override; 77 void drawOval(const SkRect& oval, const SkPaint& paint) override; 78 void drawRRect(const SkRRect& rr, const SkPaint& paint) override; 79 void drawPath(const SkPath& origpath, const SkPaint& paint, bool pathIsMutable) override; 85 const SkPaint&, 87 void onDrawGlyphRunList(const SkGlyphRunList& glyphRunList, const SkPaint& paint) override; 88 void drawVertices(const SkVertices*, SkBlendMode, const SkPaint [all...] |
/third_party/skia/modules/androidkit/src/ |
H A D | Paint.cpp | 11 #include "include/core/SkPaint.h" 18 return reinterpret_cast<jlong>(new SkPaint); in Paint_Create() 22 delete reinterpret_cast<SkPaint*>(native_paint); in Paint_Release() 27 if (auto* paint = reinterpret_cast<SkPaint*>(native_paint)) { in Paint_SetColor() 33 if (auto* paint = reinterpret_cast<SkPaint*>(native_paint)) { in Paint_SetStroke() 39 if (auto* paint = reinterpret_cast<SkPaint*>(native_paint)) { in Paint_SetStrokeWidth() 45 if (auto* paint = reinterpret_cast<SkPaint*>(native_paint)) { in Paint_SetStrokeCap() 49 paint->setStrokeCap(SkPaint::kButt_Cap); in Paint_SetStrokeCap() 52 paint->setStrokeCap(SkPaint::kRound_Cap); in Paint_SetStrokeCap() 55 paint->setStrokeCap(SkPaint in Paint_SetStrokeCap() [all...] |
/third_party/skia/docs/examples/ |
H A D | PaintDump.cpp | 5 static const char* str(SkPaint::Cap v) { in REG_FIDDLE() 7 case SkPaint::kButt_Cap: return "SkPaint::kButt_Cap"; in REG_FIDDLE() 8 case SkPaint::kRound_Cap: return "SkPaint::kRound_Cap"; in REG_FIDDLE() 9 case SkPaint::kSquare_Cap: return "SkPaint::kSquare_Cap"; in REG_FIDDLE() 13 static const char* str(SkPaint::Join v) { in REG_FIDDLE() 15 case SkPaint::kMiter_Join: return "SkPaint in REG_FIDDLE() [all...] |
/third_party/skia/src/utils/ |
H A D | SkPaintFilterCanvas.cpp | 10 #include "include/core/SkPaint.h" 18 AutoPaintFilter(const SkPaintFilterCanvas* canvas, const SkPaint* paint) in AutoPaintFilter() 19 : fPaint(paint ? *paint : SkPaint()) { in AutoPaintFilter() 23 AutoPaintFilter(const SkPaintFilterCanvas* canvas, const SkPaint& paint) in AutoPaintFilter() 26 const SkPaint& paint() const { return fPaint; } in paint() 31 SkPaint fPaint; 46 void SkPaintFilterCanvas::onDrawPaint(const SkPaint& paint) { in onDrawPaint() 53 void SkPaintFilterCanvas::onDrawBehind(const SkPaint& paint) { in onDrawBehind() 61 const SkPaint& paint) { in onDrawPoints() 73 void SkPaintFilterCanvas::onDrawRect(const SkRect& rect, const SkPaint [all...] |
/third_party/skia/modules/sksg/include/ |
H A D | SkSGPaint.h | 14 #include "include/core/SkPaint.h" 24 * Roughly equivalent to Skia's SkPaint. 28 SkPaint makePaint() const; 35 SG_ATTRIBUTE(Style , SkPaint::Style, fStyle ) 36 SG_ATTRIBUTE(StrokeJoin , SkPaint::Join , fStrokeJoin ) 37 SG_ATTRIBUTE(StrokeCap , SkPaint::Cap , fStrokeCap ) 42 virtual void onApplyToPaint(SkPaint*) const = 0; 50 SkPaint::Style fStyle = SkPaint::kFill_Style; 51 SkPaint [all...] |