/third_party/skia/gm/ |
D | widebuttcaps.cpp | 27 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 …]
|
D | strokes.cpp | 129 SkPaint fillPaint, strokePaint, dashPaint; in onDraw() local 131 strokePaint = fillPaint; in onDraw() 132 strokePaint.setStyle(SkPaint::kStroke_Style); in onDraw() 135 strokePaint.setAlphaf(1.0f); in onDraw() 136 strokePaint.setStrokeWidth(i ? 8.f : 10.f); in onDraw() 137 strokePaint.setStrokeCap(i ? SkPaint::kSquare_Cap : SkPaint::kRound_Cap); in onDraw() 140 canvas->drawPath(fMoveHfPath, strokePaint); in onDraw() 142 canvas->drawPath(fMoveZfPath, strokePaint); in onDraw() 143 dashPaint = strokePaint; in onDraw() 152 strokePaint.setStrokeWidth(20); in onDraw() [all …]
|
D | trickycubicstrokes.cpp | 117 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()
|
D | emptypath.cpp | 172 SkPaint strokePaint; in onDraw() local 173 strokePaint.setStyle(SkPaint::kStroke_Style); in onDraw() 174 strokePaint.setStrokeWidth(21); in onDraw() 175 strokePaint.setStrokeCap(SkPaint::kSquare_Cap); in onDraw() 179 strokePaint.setStyle(SkPaint::kStroke_Style); in onDraw() 184 canvas->drawPath(proc(), strokePaint); in onDraw()
|
D | offsetimagefilter.cpp | 89 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()
|
/third_party/skia/docs/examples/ |
D | Paint_getFillPath.cpp | 7 SkPaint strokePaint; in draw() local 8 strokePaint.setAntiAlias(true); in draw() 9 strokePaint.setStyle(SkPaint::kStroke_Style); in draw() 10 strokePaint.setStrokeWidth(.1f); in draw() 15 SkPaint outlinePaint(strokePaint); in draw() 19 strokePaint.getFillPath(strokePath, &fillPath, nullptr, precision); in draw() 26 strokePaint.setStrokeWidth(30); in draw() 27 canvas->drawPath(strokePath, strokePaint); in draw()
|
D | skpaint_mix.cpp | 7 SkPaint strokePaint; in draw() local 8 strokePaint.setStyle(SkPaint::kStroke_Style); in draw() 9 strokePaint.setStrokeWidth(3.0f); in draw() 12 canvas->drawRect(SkRect::MakeXYWH(80, 10, 60, 20), strokePaint); in draw() 14 strokePaint.setStrokeWidth(5.0f); in draw() 15 canvas->drawOval(SkRect::MakeXYWH(150, 10, 60, 20), strokePaint); in draw()
|
D | Path_FillType_b.cpp | 11 SkPaint strokePaint; 12 strokePaint.setStyle(SkPaint::kStroke_Style); 14 canvas->drawPath(path, strokePaint); 15 canvas->drawLine({0, 50}, {120, 50}, strokePaint);
|
D | GradientShader_MakeLinear.cpp | 10 SkPaint strokePaint; in draw() local 11 strokePaint.setStyle(SkPaint::kStroke_Style); in draw() 12 strokePaint.setColor(SK_ColorBLACK); in draw() 45 canvas->drawRect(r, strokePaint); in draw()
|
D | Path_FillType_a.cpp | 12 SkPaint strokePaint; in draw() local 13 strokePaint.setStyle(SkPaint::kStroke_Style); in draw() 15 canvas->drawPath(path, strokePaint); in draw()
|
/third_party/flutter/skia/docs/examples/ |
D | Paint_getFillPath.cpp | 7 SkPaint strokePaint; in draw() local 8 strokePaint.setAntiAlias(true); in draw() 9 strokePaint.setStyle(SkPaint::kStroke_Style); in draw() 10 strokePaint.setStrokeWidth(.1f); in draw() 15 SkPaint outlinePaint(strokePaint); in draw() 19 strokePaint.getFillPath(strokePath, &fillPath, nullptr, precision); in draw() 26 strokePaint.setStrokeWidth(30); in draw() 27 canvas->drawPath(strokePath, strokePaint); in draw()
|
D | Path_FillType_b.cpp | 11 SkPaint strokePaint; 12 strokePaint.setStyle(SkPaint::kStroke_Style); 14 canvas->drawPath(path, strokePaint); 15 canvas->drawLine({0, 50}, {120, 50}, strokePaint);
|
D | Path_FillType_a.cpp | 12 SkPaint strokePaint; in draw() local 13 strokePaint.setStyle(SkPaint::kStroke_Style); in draw() 15 canvas->drawPath(path, strokePaint); in draw()
|
/third_party/flutter/skia/gm/ |
D | strokes.cpp | 129 SkPaint fillPaint, strokePaint, dashPaint; in onDraw() local 131 strokePaint = fillPaint; in onDraw() 132 strokePaint.setStyle(SkPaint::kStroke_Style); in onDraw() 135 strokePaint.setAlphaf(1.0f); in onDraw() 136 strokePaint.setStrokeWidth(i ? 8.f : 10.f); in onDraw() 137 strokePaint.setStrokeCap(i ? SkPaint::kSquare_Cap : SkPaint::kRound_Cap); in onDraw() 140 canvas->drawPath(fMoveHfPath, strokePaint); in onDraw() 142 canvas->drawPath(fMoveZfPath, strokePaint); in onDraw() 143 dashPaint = strokePaint; in onDraw() 152 strokePaint.setStrokeWidth(20); in onDraw() [all …]
|
D | emptypath.cpp | 167 SkPaint strokePaint; in onDraw() local 168 strokePaint.setStyle(SkPaint::kStroke_Style); in onDraw() 169 strokePaint.setStrokeWidth(21); in onDraw() 170 strokePaint.setStrokeCap(SkPaint::kSquare_Cap); in onDraw() 174 strokePaint.setStyle(SkPaint::kStroke_Style); in onDraw() 181 canvas->drawPath(path, strokePaint); in onDraw()
|
D | offsetimagefilter.cpp | 91 SkPaint strokePaint; in DrawClippedImage() local 92 strokePaint.setStyle(SkPaint::kStroke_Style); in DrawClippedImage() 93 strokePaint.setStrokeWidth(2); in DrawClippedImage() 94 strokePaint.setColor(SK_ColorRED); in DrawClippedImage() 95 canvas->drawRect(clipRect, strokePaint); in DrawClippedImage()
|
D | imagefilterscropexpand.cpp | 159 SkPaint strokePaint; in draw() local 160 strokePaint.setColor(0xFFFF0000); in draw() 161 strokePaint.setStyle(SkPaint::kStroke_Style); in draw() 162 canvas->drawRect(rect, strokePaint); in draw()
|
/third_party/skia/modules/svg/src/ |
D | SkSVGShape.cpp | 17 strokePaint = ctx.strokePaint(); in onRender() local 24 if (strokePaint.isValid()) { in onRender() 25 this->onDraw(ctx.canvas(), ctx.lengthContext(), *strokePaint, fillType); in onRender()
|
D | SkSVGFilterContext.cpp | 93 const auto& strokePaint = ctx.strokePaint(); in getInput() local 94 if (strokePaint.isValid()) { in getInput() 95 SkPaint p = *strokePaint; in getInput()
|
/third_party/flutter/skia/experimental/svg/model/ |
D | SkSVGShape.cpp | 21 if (const SkPaint* strokePaint = ctx.strokePaint()) { in onRender() local 22 this->onDraw(ctx.canvas(), ctx.lengthContext(), *strokePaint, fillType); in onRender()
|
/third_party/skia/modules/canvaskit/tests/ |
D | core.spec.js | 503 const strokePaint = new CanvasKit.Paint(); constant 504 strokePaint.setStyle(CanvasKit.PaintStyle.Stroke); 505 strokePaint.setColor(CanvasKit.BLACK); 520 canvas.drawRect(r, strokePaint); 536 canvas.drawRect(r, strokePaint); 548 canvas.drawRect(r, strokePaint); 568 canvas.drawRect(r, strokePaint); 574 strokePaint.delete(); 581 const strokePaint = new CanvasKit.Paint(); constant 582 strokePaint.setStyle(CanvasKit.PaintStyle.Stroke); [all …]
|
/third_party/skia/samplecode/ |
D | SampleShadowColor.cpp | 154 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()
|
D | SampleShadowReference.cpp | 100 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()
|
/third_party/flutter/skia/samplecode/ |
D | SampleShadowColor.cpp | 154 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()
|
D | SampleShadowReference.cpp | 100 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()
|