Home
last modified time | relevance | path

Searched refs:SkPaint (Results 1 – 25 of 2526) sorted by relevance

12345678910>>...102

/external/skqp/include/core/
DSkOverdrawCanvas.h24 void onDrawTextBlob(const SkTextBlob*, SkScalar, SkScalar, const SkPaint&) override;
26 const SkPaint&) override;
27 void onDrawPaint(const SkPaint&) override;
28 void onDrawRect(const SkRect&, const SkPaint&) override;
30 void onDrawRegion(const SkRegion&, const SkPaint&) override;
31 void onDrawOval(const SkRect&, const SkPaint&) override;
32 void onDrawArc(const SkRect&, SkScalar, SkScalar, bool, const SkPaint&) override;
33 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) override;
34 void onDrawRRect(const SkRRect&, const SkPaint&) override;
35 void onDrawPoints(PointMode, size_t, const SkPoint[], const SkPaint&) override;
[all …]
DSkCanvas.h530 int saveLayer(const SkRect* bounds, const SkPaint* paint);
551 int saveLayer(const SkRect& bounds, const SkPaint* paint) { in saveLayer()
614 SaveLayerRec(const SkRect* bounds, const SkPaint* paint, SaveLayerFlags saveLayerFlags = 0)
629 SaveLayerRec(const SkRect* bounds, const SkPaint* paint, const SkImageFilter* backdrop, in SaveLayerRec()
655 SaveLayerRec(const SkRect* bounds, const SkPaint* paint, const SkImageFilter* backdrop, in SaveLayerRec()
670 const SkPaint* fPaint = nullptr;
1055 void drawPaint(const SkPaint& paint);
1096 void drawPoints(PointMode mode, size_t count, const SkPoint pts[], const SkPaint& paint);
1110 void drawPoint(SkScalar x, SkScalar y, const SkPaint& paint);
1123 void drawPoint(SkPoint p, const SkPaint& paint) { in drawPoint()
[all …]
DSkCanvasVirtualEnforcer.h22 void onDrawPaint(const SkPaint& paint) override = 0;
23 void onDrawRect(const SkRect& rect, const SkPaint& paint) override = 0;
24 void onDrawRRect(const SkRRect& rrect, const SkPaint& paint) override = 0;
26 const SkPaint& paint) override = 0;
27 void onDrawOval(const SkRect& rect, const SkPaint& paint) override = 0;
29 const SkPaint& paint) override = 0;
30 void onDrawPath(const SkPath& path, const SkPaint& paint) override = 0;
31 void onDrawRegion(const SkRegion& region, const SkPaint& paint) override = 0;
34 const SkPaint& paint) override = 0;
38 const SkPaint& paint) override = 0;
[all …]
/external/skia/include/core/
DSkOverdrawCanvas.h24 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&) override;
[all …]
/external/skia/src/core/
DSkPaint.cpp44 SkPaint::SkPaint() in SkPaint() function in SkPaint
50 (unsigned)SkPaint::kDefault_Cap, // fCapType
51 (unsigned)SkPaint::kDefault_Join, // fJoinType
52 (unsigned)SkPaint::kFill_Style, // fStyle
60 SkPaint::SkPaint(const SkColor4f& color, SkColorSpace* colorSpace) : SkPaint() { in SkPaint() function in SkPaint
64 SkPaint::SkPaint(const SkPaint& src) = default;
66 SkPaint::SkPaint(SkPaint&& src) = default;
68 SkPaint::~SkPaint() = default;
70 SkPaint& SkPaint::operator=(const SkPaint& src) = default;
72 SkPaint& SkPaint::operator=(SkPaint&& src) = default;
[all …]
DSkStrokeRec.cpp18 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::kStrokeAndFill_Style: in init()
111 stroker.setCap((SkPaint::Cap)fCap); in applyToPath()
112 stroker.setJoin((SkPaint::Join)fJoin); in applyToPath()
[all …]
DSkDraw.h37 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,
62 const SkSamplingOptions&, const SkPaint&) const override;
63 void drawSprite(const SkBitmap&, int x, int y, const SkPaint&) const;
65 const SkPaint& paint,
67 void drawVertices(const SkVertices*, SkBlendMode, const SkPaint&) const;
[all …]
/external/skqp/src/core/
DSkStrokeRec.cpp18 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::kStrokeAndFill_Style: in init()
111 stroker.setCap((SkPaint::Cap)fCap); in applyToPath()
112 stroker.setJoin((SkPaint::Join)fJoin); in applyToPath()
[all …]
DSkLiteRecorder.h39 void onDrawPaint (const SkPaint&) override;
40 void onDrawPath (const SkPath&, const SkPaint&) override;
41 void onDrawRect (const SkRect&, const SkPaint&) override;
43 void onDrawRegion(const SkRegion&, const SkPaint&) override;
44 void onDrawOval (const SkRect&, const SkPaint&) override;
45 void onDrawArc(const SkRect&, SkScalar, SkScalar, bool, const SkPaint&) override;
46 void onDrawRRect (const SkRRect&, const SkPaint&) override;
47 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) override;
50 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) override;
53 void onDrawTextBlob(const SkTextBlob*, SkScalar, SkScalar, const SkPaint&) override;
[all …]
DSkLiteDL.h31 void saveLayer(const SkRect*, const SkPaint*, const SkImageFilter*, const SkImage*,
46 void drawPaint (const SkPaint&);
47 void drawPath (const SkPath&, const SkPaint&);
48 void drawRect (const SkRect&, const SkPaint&);
50 void drawRegion(const SkRegion&, const SkPaint&);
51 void drawOval (const SkRect&, const SkPaint&);
52 void drawArc (const SkRect&, SkScalar, SkScalar, bool, const SkPaint&);
53 void drawRRect (const SkRRect&, const SkPaint&);
54 void drawDRRect(const SkRRect&, const SkRRect&, const SkPaint&);
58 void drawPicture (const SkPicture*, const SkMatrix*, const SkPaint*);
[all …]
/external/skqp/include/utils/
DSkNoDrawCanvas.h45 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) override {} in onDrawDRRect() argument
47 void onDrawTextBlob(const SkTextBlob*, SkScalar, SkScalar, const SkPaint&) override {} in onDrawTextBlob() argument
49 const SkPaint&) override {} in onDrawPatch() argument
51 void onDrawPaint(const SkPaint&) override {} in onDrawPaint() argument
52 void onDrawPoints(PointMode, size_t, const SkPoint[], const SkPaint&) override {} in onDrawPoints() argument
53 void onDrawRect(const SkRect&, const SkPaint&) override {} in onDrawRect() argument
55 void onDrawRegion(const SkRegion&, const SkPaint&) override {} in onDrawRegion() argument
56 void onDrawOval(const SkRect&, const SkPaint&) override {} in onDrawOval() argument
57 void onDrawArc(const SkRect&, SkScalar, SkScalar, bool, const SkPaint&) override {} in onDrawArc() argument
58 void onDrawRRect(const SkRRect&, const SkPaint&) override {} in onDrawRRect() argument
[all …]
DSkPaintFilterCanvas.h66 virtual bool onFilter(SkTCopyOnFirstWrite<SkPaint>* paint, Type type) const = 0;
68 void onDrawPaint(const SkPaint&) override;
69 void onDrawPoints(PointMode, size_t count, const SkPoint pts[], const SkPaint&) override;
70 void onDrawRect(const SkRect&, const SkPaint&) override;
72 void onDrawRRect(const SkRRect&, const SkPaint&) override;
73 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) override;
74 void onDrawRegion(const SkRegion&, const SkPaint&) override;
75 void onDrawOval(const SkRect&, const SkPaint&) override;
76 void onDrawArc(const SkRect&, SkScalar, SkScalar, bool, const SkPaint&) override;
77 void onDrawPath(const SkPath&, const SkPaint&) override;
[all …]
DSkNWayCanvas.h36 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) override;
38 const SkPaint& paint) override;
41 const SkPaint& paint) override;
43 void onDrawPaint(const SkPaint&) override;
44 void onDrawPoints(PointMode, size_t count, const SkPoint pts[], const SkPaint&) override;
45 void onDrawRect(const SkRect&, const SkPaint&) override;
47 void onDrawRegion(const SkRegion&, const SkPaint&) override;
48 void onDrawOval(const SkRect&, const SkPaint&) override;
49 void onDrawArc(const SkRect&, SkScalar, SkScalar, bool, const SkPaint&) override;
50 void onDrawRRect(const SkRRect&, const SkPaint&) override;
[all …]
/external/skia/tests/
DStrokeTest.cpp36 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::kMiter_Join == joins[i]; in test_strokerect()
111 s1.setStrokeParams(SkPaint::kButt_Cap, SkPaint::kRound_Join, 2.9f); in test_strokerec_equality()
112 s2.setStrokeParams(SkPaint::kButt_Cap, SkPaint::kRound_Join, 2.9f); in test_strokerec_equality()
121 s1.setStrokeParams(SkPaint::kButt_Cap, SkPaint::kRound_Join, 2.9f); in test_strokerec_equality()
[all …]
/external/skqp/src/compute/sk/
DSkDevice_Compute.h67 void drawPaint(const SkPaint& paint) override;
68 void drawPoints(SkCanvas::PointMode, size_t, const SkPoint[], const SkPaint&) override;
69 void drawRect(const SkRect&, const SkPaint&) override;
70 void drawOval(const SkRect&, const SkPaint&) override;
71 void drawRRect(const SkRRect&, const SkPaint&) override;
72 void drawPath(const SkPath&, const SkPaint&, const SkMatrix*, bool) override;
73 void drawText(const void*, size_t, SkScalar, SkScalar, const SkPaint&) override;
75 const SkPaint&) override;
107 void drawBitmap(const SkBitmap&, const SkMatrix&, const SkPaint&) override {} in drawBitmap() argument
108 void drawSprite(const SkBitmap&, int, int, const SkPaint&) override {} in drawSprite() argument
[all …]
/external/skqp/gm/
Dcirculararcs.cpp21 void draw_arcs(SkCanvas* canvas, std::function<void(SkPaint*)> configureStyle) { in draw_arcs()
25 SkPaint p0; in draw_arcs()
30 SkPaint p1 = p0; in draw_arcs()
60 SkPaint linePaint; in draw_arcs()
70 auto setFill = [] (SkPaint*p) { p->setStyle(SkPaint::kFill_Style); }; in DEF_ARC_GM()
75 auto setHairline = [] (SkPaint* p) { in DEF_ARC_GM()
76 p->setStyle(SkPaint::kStroke_Style); in DEF_ARC_GM()
83 auto setStroke = [](SkPaint* p) { in DEF_ARC_GM()
84 p->setStyle(SkPaint::kStroke_Style); in DEF_ARC_GM()
85 p->setStrokeCap(SkPaint::kButt_Cap); in DEF_ARC_GM()
[all …]
Dquadpaths.cpp30 const SkRect& clip,SkPaint::Cap cap, SkPaint::Join join, in drawPath()
31 SkPaint::Style style, SkPath::FillType fill, in drawPath()
34 SkPaint paint; in drawPath()
58 SkPaint::Style fStyle; in onDraw()
62 {SkPaint::kFill_Style, "Fill"}, in onDraw()
63 {SkPaint::kStroke_Style, "Stroke"}, in onDraw()
64 {SkPaint::kStrokeAndFill_Style, "Stroke And Fill"}, in onDraw()
67 SkPaint::Cap fCap; in onDraw()
68 SkPaint::Join fJoin; in onDraw()
72 {SkPaint::kButt_Cap, SkPaint::kBevel_Join, "Butt"}, in onDraw()
[all …]
/external/skqp/tests/
DStrokeTest.cpp35 SkPaint paint; in test_strokecubic()
37 paint.setStyle(SkPaint::kStroke_Style); in test_strokecubic()
53 SkPaint paint; in test_strokerect()
55 paint.setStyle(SkPaint::kStroke_Style); in test_strokerect()
63 static const SkPaint::Join joins[] = { in test_strokerect()
64 SkPaint::kMiter_Join, SkPaint::kRound_Join, SkPaint::kBevel_Join in test_strokerect()
76 bool isMiter = SkPaint::kMiter_Join == joins[i]; in test_strokerect()
110 s1.setStrokeParams(SkPaint::kButt_Cap, SkPaint::kRound_Join, 2.9f); in test_strokerec_equality()
111 s2.setStrokeParams(SkPaint::kButt_Cap, SkPaint::kRound_Join, 2.9f); in test_strokerec_equality()
120 s1.setStrokeParams(SkPaint::kButt_Cap, SkPaint::kRound_Join, 2.9f); in test_strokerec_equality()
[all …]
/external/skia/gm/
Dquadpaths.cpp38 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; in onDraw()
70 {SkPaint::kFill_Style, "Fill"}, in onDraw()
71 {SkPaint::kStroke_Style, "Stroke"}, in onDraw()
72 {SkPaint::kStrokeAndFill_Style, "Stroke And Fill"}, in onDraw()
75 SkPaint::Cap fCap; in onDraw()
76 SkPaint::Join fJoin; in onDraw()
80 {SkPaint::kButt_Cap, SkPaint::kBevel_Join, "Butt"}, in onDraw()
[all …]
Dpatheffects.cpp32 static void compose_pe(SkPaint* paint) { in compose_pe()
44 static void hair_pe(SkPaint* paint) { in hair_pe()
48 static void hair2_pe(SkPaint* paint) { in hair2_pe()
53 static void stroke_pe(SkPaint* paint) { in stroke_pe()
58 static void dash_pe(SkPaint* paint) { in dash_pe()
75 static void one_d_pe(SkPaint* paint) { in one_d_pe()
89 typedef void (*PE_Proc)(SkPaint*);
92 static void fill_pe(SkPaint* paint) { in fill_pe()
93 paint->setStyle(SkPaint::kFill_Style); in fill_pe()
97 static void discrete_pe(SkPaint* paint) { in discrete_pe()
[all …]
/external/skia/include/utils/
DSkNoDrawCanvas.h41 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) override {} in onDrawDRRect() argument
43 void onDrawTextBlob(const SkTextBlob*, SkScalar, SkScalar, const SkPaint&) override {} in onDrawTextBlob() argument
45 const SkPaint&) override {} in onDrawPatch() argument
47 void onDrawPaint(const SkPaint&) override {} in onDrawPaint() argument
48 void onDrawBehind(const SkPaint&) override {} in onDrawBehind() argument
49 void onDrawPoints(PointMode, size_t, const SkPoint[], const SkPaint&) override {} in onDrawPoints() argument
50 void onDrawRect(const SkRect&, const SkPaint&) override {} in onDrawRect() argument
51 void onDrawRegion(const SkRegion&, const SkPaint&) override {} in onDrawRegion() argument
52 void onDrawOval(const SkRect&, const SkPaint&) override {} in onDrawOval() argument
53 void onDrawArc(const SkRect&, SkScalar, SkScalar, bool, const SkPaint&) override {} in onDrawArc() argument
[all …]
DSkPaintFilterCanvas.h48 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&) override;
[all …]
DSkNWayCanvas.h39 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) override;
40 void onDrawGlyphRunList(const SkGlyphRunList&, const SkPaint&) override;
42 const SkPaint& paint) override;
44 const SkPoint texCoords[4], SkBlendMode, const SkPaint& paint) override;
46 void onDrawPaint(const SkPaint&) override;
47 void onDrawBehind(const SkPaint&) override;
48 void onDrawPoints(PointMode, size_t count, const SkPoint pts[], const SkPaint&) override;
49 void onDrawRect(const SkRect&, const SkPaint&) override;
50 void onDrawRegion(const SkRegion&, const SkPaint&) override;
51 void onDrawOval(const SkRect&, const SkPaint&) override;
[all …]
/external/skqp/bench/
DBezierBench.cpp16 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); in onDraw()
96 DEF_BENCH( return new BezierBench(SkPaint::kButt_Cap, SkPaint::kRound_Join, 2, draw_quad); )
97 DEF_BENCH( return new BezierBench(SkPaint::kSquare_Cap, SkPaint::kBevel_Join, 10, draw_quad); )
98 DEF_BENCH( return new BezierBench(SkPaint::kRound_Cap, SkPaint::kMiter_Join, 50, draw_quad); )
[all …]
/external/skia/bench/
DBezierBench.cpp16 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); in onDraw()
96 DEF_BENCH( return new BezierBench(SkPaint::kButt_Cap, SkPaint::kRound_Join, 2, draw_quad); )
97 DEF_BENCH( return new BezierBench(SkPaint::kSquare_Cap, SkPaint::kBevel_Join, 10, draw_quad); )
98 DEF_BENCH( return new BezierBench(SkPaint::kRound_Cap, SkPaint::kMiter_Join, 50, draw_quad); )
[all …]

12345678910>>...102