Home
last modified time | relevance | path

Searched refs:strokePaint (Results 1 - 25 of 27) sorted by relevance

12

/third_party/skia/gm/
H A Dwidebuttcaps.cpp27 SkPaint strokePaint; in draw_strokes() local
28 strokePaint.setAntiAlias(true); in draw_strokes()
29 strokePaint.setStrokeWidth(kStrokeWidth); in draw_strokes()
30 strokePaint.setStyle(SkPaint::kStroke_Style); in draw_strokes()
33 strokePaint.setStrokeJoin(SkPaint::kBevel_Join); in draw_strokes()
34 strokePaint.setColor(rand->nextU() | 0xff808080); in draw_strokes()
35 canvas->drawPath(path, strokePaint); in draw_strokes()
38 strokePaint.setStrokeJoin(SkPaint::kRound_Join); in draw_strokes()
39 strokePaint.setColor(rand->nextU() | 0xff808080); in draw_strokes()
40 canvas->drawPath(path, strokePaint); in draw_strokes()
[all...]
H A Dstrokes.cpp129 SkPaint fillPaint, strokePaint, dashPaint; variable
131 strokePaint = fillPaint;
132 strokePaint.setStyle(SkPaint::kStroke_Style);
135 strokePaint.setAlphaf(1.0f);
136 strokePaint.setStrokeWidth(i ? 8.f : 10.f);
137 strokePaint.setStrokeCap(i ? SkPaint::kSquare_Cap : SkPaint::kRound_Cap);
140 canvas->drawPath(fMoveHfPath, strokePaint);
142 canvas->drawPath(fMoveZfPath, strokePaint);
143 dashPaint = strokePaint;
152 strokePaint
[all...]
H A Dtrickycubicstrokes.cpp117 SkPaint strokePaint; in draw_test() local
118 strokePaint.setAntiAlias(true); in draw_test()
119 strokePaint.setStrokeWidth(kStrokeWidth); in draw_test()
120 strokePaint.setStyle(SkPaint::kStroke_Style); in draw_test()
121 strokePaint.setStrokeCap(cap); in draw_test()
122 strokePaint.setStrokeJoin(join); in draw_test()
160 strokePaint.setStrokeWidth(kStrokeWidth / matrix.getMaxScale()); in draw_test()
161 strokePaint.setColor(rand.nextU() | 0xff808080); in draw_test()
172 canvas->drawPath(path, strokePaint); in draw_test()
H A Demptypath.cpp172 SkPaint strokePaint; variable
173 strokePaint.setStyle(SkPaint::kStroke_Style);
174 strokePaint.setStrokeWidth(21);
175 strokePaint.setStrokeCap(SkPaint::kSquare_Cap);
179 strokePaint.setStyle(SkPaint::kStroke_Style);
184 canvas->drawPath(proc(), strokePaint); variable
H A Doffsetimagefilter.cpp89 SkPaint strokePaint; in DrawClippedImage() local
90 strokePaint.setStyle(SkPaint::kStroke_Style); in DrawClippedImage()
91 strokePaint.setStrokeWidth(2); in DrawClippedImage()
92 strokePaint.setColor(SK_ColorRED); in DrawClippedImage()
93 canvas->drawRect(clipRect, strokePaint); in DrawClippedImage()
H A Dimagefilterscropexpand.cpp158 SkPaint strokePaint; in draw() local
159 strokePaint.setColor(0xFFFF0000); in draw()
160 strokePaint.setStyle(SkPaint::kStroke_Style); in draw()
161 canvas->drawRect(rect, strokePaint); in draw()
/third_party/skia/docs/examples/
H A DPaint_getFillPath.cpp7 SkPaint strokePaint; in REG_FIDDLE() local
8 strokePaint.setAntiAlias(true); in REG_FIDDLE()
9 strokePaint.setStyle(SkPaint::kStroke_Style); in REG_FIDDLE()
10 strokePaint.setStrokeWidth(.1f); in REG_FIDDLE()
15 SkPaint outlinePaint(strokePaint); in REG_FIDDLE()
19 strokePaint.getFillPath(strokePath, &fillPath, nullptr, precision); in REG_FIDDLE()
26 strokePaint.setStrokeWidth(30); in REG_FIDDLE()
27 canvas->drawPath(strokePath, strokePaint); in REG_FIDDLE()
H A Dskpaint_mix.cpp7 SkPaint strokePaint; in REG_FIDDLE() local
8 strokePaint.setStyle(SkPaint::kStroke_Style); in REG_FIDDLE()
9 strokePaint.setStrokeWidth(3.0f); in REG_FIDDLE()
12 canvas->drawRect(SkRect::MakeXYWH(80, 10, 60, 20), strokePaint); in REG_FIDDLE()
14 strokePaint.setStrokeWidth(5.0f); in REG_FIDDLE()
15 canvas->drawOval(SkRect::MakeXYWH(150, 10, 60, 20), strokePaint); in REG_FIDDLE()
H A DPath_FillType_b.cpp11 SkPaint strokePaint; in REG_FIDDLE() local
12 strokePaint.setStyle(SkPaint::kStroke_Style); in REG_FIDDLE()
14 canvas->drawPath(path, strokePaint); in REG_FIDDLE()
15 canvas->drawLine({0, 50}, {120, 50}, strokePaint); in REG_FIDDLE()
H A DGradientShader_MakeLinear.cpp10 SkPaint strokePaint; in REG_FIDDLE() local
11 strokePaint.setStyle(SkPaint::kStroke_Style); in REG_FIDDLE()
12 strokePaint.setColor(SK_ColorBLACK); in REG_FIDDLE()
45 canvas->drawRect(r, strokePaint); in REG_FIDDLE()
H A DPath_FillType_a.cpp12 SkPaint strokePaint; in REG_FIDDLE() local
13 strokePaint.setStyle(SkPaint::kStroke_Style); in REG_FIDDLE()
15 canvas->drawPath(path, strokePaint); in REG_FIDDLE()
/third_party/skia/modules/svg/src/
H A DSkSVGShape.cpp17 strokePaint = ctx.strokePaint(); in onRender() local
24 if (strokePaint.isValid()) { in onRender()
25 this->onDraw(ctx.canvas(), ctx.lengthContext(), *strokePaint, fillType); in onRender()
H A DSkSVGFilterContext.cpp93 const auto& strokePaint = ctx.strokePaint(); in getInput() local
94 if (strokePaint.isValid()) { in getInput()
95 SkPaint p = *strokePaint; in getInput()
H A DSkSVGTextPriv.h148 strokePaint; member
H A DSkSVGText.cpp298 fCurrentStroke = ctx.strokePaint();
424 fCallback(ctx, blobBuilder.make(), run.fillPaint.get(), run.strokePaint.get()); in flushChunk()
H A DSkSVGRenderContext.cpp477 SkTLazy<SkPaint> SkSVGRenderContext::strokePaint() const { in strokePaint() function in SkSVGRenderContext
/third_party/skia/modules/canvaskit/htmlcanvas/
H A Dcanvas2dcontext.js1048 var strokePaint = this._strokePaint();
1050 var shadowPaint = this._shadowPaint(strokePaint);
1059 this._canvas.drawPath(path, strokePaint);
1060 strokePaint.dispose();
1064 var strokePaint = this._strokePaint();
1066 var shadowPaint = this._shadowPaint(strokePaint);
1074 this._canvas.drawRect(CanvasKit.XYWHRect(x, y, width, height), strokePaint);
1075 strokePaint.dispose();
1080 var strokePaint = this._strokePaint();
1083 var shadowPaint = this._shadowPaint(strokePaint);
[all...]
/third_party/skia/samplecode/
H A DSampleShadowColor.cpp154 SkPaint strokePaint; in drawShadowedPath() local
156 strokePaint.setColor(paint.getColor()); in drawShadowedPath()
157 strokePaint.setStyle(SkPaint::kStroke_Style); in drawShadowedPath()
159 canvas->drawPath(path, strokePaint); in drawShadowedPath()
H A DSampleShadowReference.cpp100 SkPaint strokePaint; in drawShadowedPath() local
102 strokePaint.setColor(paint.getColor()); in drawShadowedPath()
103 strokePaint.setStyle(SkPaint::kStroke_Style); in drawShadowedPath()
105 canvas->drawPath(path, strokePaint); in drawShadowedPath()
H A DSampleShadowUtils.cpp148 SkPaint strokePaint; in drawShadowedPath() local
150 strokePaint.setColor(paint.getColor()); in drawShadowedPath()
151 strokePaint.setStyle(SkPaint::kStroke_Style); in drawShadowedPath()
153 canvas->drawPath(path, strokePaint); in drawShadowedPath()
H A DSampleAndroidShadows.cpp170 SkPaint strokePaint; in drawShadowedPath() local
172 strokePaint.setColor(paint.getColor()); in drawShadowedPath()
173 strokePaint.setStyle(SkPaint::kStroke_Style); in drawShadowedPath()
175 canvas->drawPath(path, strokePaint); in drawShadowedPath()
/third_party/skia/src/gpu/ops/
H A DStrokeRectOp.cpp996 SkPaint strokePaint; in GR_DRAW_OP_TEST_DEFINE() local
997 strokePaint.setStrokeWidth(strokeWidth); in GR_DRAW_OP_TEST_DEFINE()
998 strokePaint.setStyle(SkPaint::kStroke_Style); in GR_DRAW_OP_TEST_DEFINE()
999 strokePaint.setStrokeJoin(SkPaint::kMiter_Join); in GR_DRAW_OP_TEST_DEFINE()
1000 SkStrokeRec strokeRec(strokePaint); in GR_DRAW_OP_TEST_DEFINE()
/third_party/skia/modules/svg/include/
H A DSkSVGRenderContext.h135 SkTLazy<SkPaint> strokePaint() const;
/third_party/skia/tests/
H A DGrStyledShapeTest.cpp2263 SkPaint strokePaint; in DEF_TEST() local
2264 strokePaint.setStrokeWidth(3.f); in DEF_TEST()
2265 strokePaint.setStyle(SkPaint::kStroke_Style); in DEF_TEST()
2266 TestCase strokePathCase(reporter, rrgeo.path(), strokePaint); in DEF_TEST()
2267 if (rrgeo.isNonPath(strokePaint)) { in DEF_TEST()
2271 TestCase strokeRRectCase(reporter, rrect, strokePaint); in DEF_TEST()
/third_party/skia/src/core/
H A DSkCanvas.cpp1992 SkPaint strokePaint = paint;
1993 strokePaint.setStyle(SkPaint::kStroke_Style);
1994 if (this->internalQuickReject(bounds, strokePaint)) {
1998 auto layer = this->aboutToDraw(this, strokePaint, &bounds);

Completed in 20 milliseconds

12