/third_party/skia/gm/ |
H A 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...] |
H A D | strokes.cpp | 129 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 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()
|
H A D | emptypath.cpp | 172 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 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()
|
H A D | imagefilterscropexpand.cpp | 158 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 D | Paint_getFillPath.cpp | 7 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 D | skpaint_mix.cpp | 7 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 D | Path_FillType_b.cpp | 11 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 D | GradientShader_MakeLinear.cpp | 10 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 D | Path_FillType_a.cpp | 12 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 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()
|
H A D | SkSVGFilterContext.cpp | 93 const auto& strokePaint = ctx.strokePaint(); in getInput() local 94 if (strokePaint.isValid()) { in getInput() 95 SkPaint p = *strokePaint; in getInput()
|
H A D | SkSVGTextPriv.h | 148 strokePaint; member
|
H A D | SkSVGText.cpp | 298 fCurrentStroke = ctx.strokePaint(); 424 fCallback(ctx, blobBuilder.make(), run.fillPaint.get(), run.strokePaint.get()); in flushChunk()
|
H A D | SkSVGRenderContext.cpp | 477 SkTLazy<SkPaint> SkSVGRenderContext::strokePaint() const { in strokePaint() function in SkSVGRenderContext
|
/third_party/skia/modules/canvaskit/htmlcanvas/ |
H A D | canvas2dcontext.js | 1048 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 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()
|
H A 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()
|
H A D | SampleShadowUtils.cpp | 148 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 D | SampleAndroidShadows.cpp | 170 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 D | StrokeRectOp.cpp | 996 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 D | SkSVGRenderContext.h | 135 SkTLazy<SkPaint> strokePaint() const;
|
/third_party/skia/tests/ |
H A D | GrStyledShapeTest.cpp | 2263 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 D | SkCanvas.cpp | 1992 SkPaint strokePaint = paint; 1993 strokePaint.setStyle(SkPaint::kStroke_Style); 1994 if (this->internalQuickReject(bounds, strokePaint)) { 1998 auto layer = this->aboutToDraw(this, strokePaint, &bounds);
|