/third_party/skia/src/gpu/tessellate/ |
H A D | StrokeTessellator.h | 71 float strokeWidth) { in CalcNumRadialSegmentsPerRadian() 72 return .5f / acosf(std::max(1 - 2 / (parametricPrecision * strokeWidth), -1.f)); in CalcNumRadialSegmentsPerRadian() 83 static float GetLocalStrokeWidth(const float matrixMinMaxScales[2], float strokeWidth) { in GetLocalStrokeWidth() 84 SkASSERT(strokeWidth >= 0); in GetLocalStrokeWidth() 85 float localStrokeWidth = strokeWidth; in GetLocalStrokeWidth() 107 static StrokeTolerances Make(const float matrixMinMaxScales[2], float strokeWidth) { in Make() 109 GetLocalStrokeWidth(matrixMinMaxScales, strokeWidth)); in Make() 111 static StrokeTolerances MakeNonHairline(float matrixMaxScale, float strokeWidth) { in MakeNonHairline() 112 SkASSERT(strokeWidth > 0); in MakeNonHairline() 115 CalcNumRadialSegmentsPerRadian(parametricPrecision, strokeWidth)}; in MakeNonHairline() [all...] |
/third_party/skia/gm/ |
H A D | glyph_pos.cpp | 31 SkScalar strokeWidth, 35 SkScalar strokeWidth, in draw_gm() 42 drawTestCase(canvas, 1.0f, strokeWidth, strokeStyle); in draw_gm() 45 drawTestCase(canvas, 3.0f, strokeWidth, strokeStyle); in draw_gm() 51 drawTestCase(canvas, 1.0f, strokeWidth, strokeStyle); in draw_gm() 58 drawTestCase(canvas, 1.0f, strokeWidth, strokeStyle); in draw_gm() 70 drawTestCase(canvas, 1.0f, strokeWidth, strokeStyle); in draw_gm() 83 drawTestCase(canvas, 1.0f, strokeWidth, strokeStyle); in draw_gm() 89 SkScalar strokeWidth, in drawTestCase() 94 paint.setStrokeWidth(strokeWidth); in drawTestCase() 34 draw_gm(SkCanvas* canvas, SkScalar strokeWidth, SkPaint::Style strokeStyle) draw_gm() argument 87 drawTestCase(SkCanvas* canvas, SkScalar textScale, SkScalar strokeWidth, SkPaint::Style strokeStyle) drawTestCase() argument [all...] |
H A D | stroketext.cpp | 42 SkScalar strokeWidth) { in draw_text_stroked() 46 if (strokeWidth > 0) { in draw_text_stroked() 54 p.setStrokeWidth(strokeWidth); in draw_text_stroked() 41 draw_text_stroked(SkCanvas* canvas, const SkPaint& paint, const SkFont& font, SkScalar strokeWidth) draw_text_stroked() argument
|
H A D | quadpaths.cpp | 40 SkScalar strokeWidth) { in drawPath() 44 paint.setStrokeWidth(strokeWidth); in drawPath() 170 SkScalar strokeWidth) { in drawPath() 174 paint.setStrokeWidth(strokeWidth); in drawPath() 37 drawPath(SkPath& path,SkCanvas* canvas,SkColor color, const SkRect& clip,SkPaint::Cap cap, SkPaint::Join join, SkPaint::Style style, SkPathFillType fill, SkScalar strokeWidth) drawPath() argument 167 drawPath(SkPath& path,SkCanvas* canvas,SkColor color, const SkRect& clip,SkPaint::Cap cap, SkPaint::Join join, SkPaint::Style style, SkPathFillType fill, SkScalar strokeWidth) drawPath() argument
|
H A D | patheffects.cpp | 304 StrokeLineInflated(float strokeWidth, float pxInflate) in StrokeLineInflated() argument 305 : fRadius(strokeWidth / 2.f), fPxInflate(pxInflate) {} in StrokeLineInflated() 374 const float strokeWidth = 16; variable 376 sk_sp<SkPathEffect> pathEffect(new StrokeLineInflated(strokeWidth, pxInflate)); 398 paint.setStrokeWidth(strokeWidth);
|
H A D | ninepatchstretch.cpp | 36 const SkScalar strokeWidth = SkIntToScalar(6); in make_image() local 37 const SkScalar radius = SkIntToScalar(kFixed) - strokeWidth/2; in make_image()
|
H A D | addarc.cpp | 183 const SkScalar strokeWidth = paint.getStrokeWidth(); variable 184 const SkScalar delta = strokeWidth * 3 / 2; 188 // Reset style to fill. We only need stroke stype for producing delta and strokeWidth 192 while (r.width() > strokeWidth * 2) {
|
H A D | linepaths.cpp | 24 SkScalar strokeWidth) { in drawPath() 28 paint.setStrokeWidth(strokeWidth); in drawPath() 21 drawPath(SkPath& path,SkCanvas* canvas,SkColor color, const SkRect& clip,SkPaint::Cap cap, SkPaint::Join join, SkPaint::Style style, SkPathFillType fill, SkScalar strokeWidth) drawPath() argument
|
H A D | cubicpaths.cpp | 129 SkScalar strokeWidth) { in drawPath() 133 paint.setStrokeWidth(strokeWidth); in drawPath() 248 SkScalar strokeWidth) { in drawPath() 252 paint.setStrokeWidth(strokeWidth); in drawPath() 126 drawPath(SkPath& path,SkCanvas* canvas,SkColor color, const SkRect& clip,SkPaint::Cap cap, SkPaint::Join join, SkPaint::Style style, SkPathFillType fill, SkScalar strokeWidth) drawPath() argument 245 drawPath(SkPath& path,SkCanvas* canvas,SkColor color, const SkRect& clip,SkPaint::Cap cap, SkPaint::Join join, SkPaint::Style style, SkPathFillType fill, SkScalar strokeWidth) drawPath() argument
|
H A D | dashing.cpp | 202 int strokeWidth, in drawDashedLines() 207 p.setStrokeWidth(SkIntToScalar(strokeWidth)); in drawDashedLines() 219 for (int y = 0; y < 100; y += 10*strokeWidth) { in drawDashedLines() 228 for (int x = 0; x < 100; x += 14*strokeWidth) { in drawDashedLines() 198 drawDashedLines(SkCanvas* canvas, SkScalar lineLength, SkScalar phase, SkScalar dashLength, int strokeWidth, bool circles) drawDashedLines() argument
|
/third_party/skia/src/core/ |
H A D | SkDrawProcs.h | 14 bool SkDrawTreatAAStrokeAsHairline(SkScalar strokeWidth, const SkMatrix&, 29 SkScalar strokeWidth = paint.getStrokeWidth(); in SkDrawTreatAsHairline() local 30 if (0 == strokeWidth) { in SkDrawTreatAsHairline() 39 return SkDrawTreatAAStrokeAsHairline(strokeWidth, matrix, coverage); in SkDrawTreatAsHairline()
|
H A D | SkStrokeRec.cpp | 150 SkScalar strokeWidth) { in GetInflationRadius() 151 if (strokeWidth < 0) { // fill in GetInflationRadius() 153 } else if (0 == strokeWidth) { in GetInflationRadius() 168 return strokeWidth/2 * multiplier; in GetInflationRadius() 149 GetInflationRadius(SkPaint::Join join, SkScalar miterLimit, SkPaint::Cap cap, SkScalar strokeWidth) GetInflationRadius() argument
|
H A D | SkScalerContext.cpp | 1030 SkScalar strokeWidth = paint.getStrokeWidth(); in MakeRecAndEffects() local 1046 strokeWidth = extra; // ignore paint's strokeWidth if it was "fill" in MakeRecAndEffects() 1048 strokeWidth += extra; in MakeRecAndEffects() 1053 if (style != SkPaint::kFill_Style && strokeWidth >= 0) { in MakeRecAndEffects() 1054 rec->fFrameWidth = strokeWidth; in MakeRecAndEffects()
|
/third_party/skia/src/gpu/ops/ |
H A D | AALinearizingConvexPathRenderer.cpp | 91 SkScalar strokeWidth, in Make() 98 strokeWidth, style, join, miterLimit, in Make() 106 SkScalar strokeWidth, in AAFlatteningConvexPathOp() 113 PathData{viewMatrix, path, color, strokeWidth, miterLimit, style, join}); in AAFlatteningConvexPathOp() 117 SkScalar w = strokeWidth; in AAFlatteningConvexPathOp() 369 SkScalar strokeWidth = args.fViewMatrix->getMaxScale() * stroke.getWidth(); in onCanDrawPath() local 370 if (strokeWidth < 1.0f && stroke.getStyle() == SkStrokeRec::kStroke_Style) { in onCanDrawPath() 373 if (strokeWidth > kMaxStrokeWidth || in onCanDrawPath() 403 SkScalar strokeWidth = fill ? -1.0f : stroke.getWidth(); in onDrawPath() local 408 args.fContext, std::move(args.fPaint), *args.fViewMatrix, path, strokeWidth, in onDrawPath() 87 Make(GrRecordingContext* context, GrPaint&& paint, const SkMatrix& viewMatrix, const SkPath& path, SkScalar strokeWidth, SkStrokeRec::Style style, SkPaint::Join join, SkScalar miterLimit, const GrUserStencilSettings* stencilSettings) Make() argument 102 AAFlatteningConvexPathOp(GrProcessorSet* processorSet, const SkPMColor4f& color, const SkMatrix& viewMatrix, const SkPath& path, SkScalar strokeWidth, SkStrokeRec::Style style, SkPaint::Join join, SkScalar miterLimit, const GrUserStencilSettings* stencilSettings) AAFlatteningConvexPathOp() argument 428 SkScalar strokeWidth = -1.f; GR_DRAW_OP_TEST_DEFINE() local [all...] |
H A D | GrOvalOpFactory.cpp | 1073 SkScalar strokeWidth = viewMatrix.mapRadius(stroke.getWidth()); 1083 if (SkScalarNearlyZero(strokeWidth)) { 1086 halfWidth = SkScalarHalf(strokeWidth); 1532 SkScalar strokeWidth, 1538 SkASSERT(strokeWidth < 2 * radius); 1540 center, radius, strokeWidth, startAngle, 1546 SkScalar strokeWidth, SkScalar startAngle, SkScalar onAngle, 1553 strokeWidth = viewMatrix.mapRadius(strokeWidth); 1574 if (SkScalarNearlyZero(strokeWidth)) { [all...] |
H A D | DashOp.cpp | 128 SkScalar strokeWidth, in setup_dashed_rect() 140 SkScalar radius = SkScalarHalf(strokeWidth) - 0.5f; in setup_dashed_rect() 151 SkScalar halfStroke = SkScalarHalf(strokeWidth); in setup_dashed_rect() 463 SkScalar strokeWidth = args.fSrcStrokeWidth * args.fPerpendicularScale; variable 465 if ((strokeWidth < 1.f && !useAA) || 0.f == strokeWidth) { 466 strokeWidth = 1.f; 469 SkScalar halfDevStroke = strokeWidth * 0.5f; 473 devIntervals[0] += strokeWidth; 474 devIntervals[1] -= strokeWidth; 120 setup_dashed_rect(const SkRect& rect, VertexWriter& vertices, const SkMatrix& matrix, SkScalar offset, SkScalar bloatX, SkScalar len, SkScalar startInterval, SkScalar endInterval, SkScalar strokeWidth, SkScalar perpScale, DashCap cap) setup_dashed_rect() argument [all...] |
H A D | StrokeRectOp.cpp | 303 SkScalar strokeWidth, in compute_aa_rects() 307 if (strokeWidth > 0) { in compute_aa_rects() 308 devStrokeSize.set(strokeWidth, strokeWidth); in compute_aa_rects() 995 SkScalar strokeWidth = random->nextBool() ? 0.0f : 2.0f; in GR_DRAW_OP_TEST_DEFINE() local 997 strokePaint.setStrokeWidth(strokeWidth); in GR_DRAW_OP_TEST_DEFINE() 1016 SkScalar strokeWidth = random->nextUScalar1() * minDim; in GR_DRAW_OP_TEST_DEFINE() local 1019 rec.setStrokeStyle(strokeWidth); in GR_DRAW_OP_TEST_DEFINE() 296 compute_aa_rects(const GrCaps& caps, SkRect* devOutside, SkRect* devOutsideAssist, SkRect* devInside, bool* isDegenerate, const SkMatrix& viewMatrix, const SkRect& rect, SkScalar strokeWidth, bool miterStroke, SkVector* devHalfStrokeSize) compute_aa_rects() argument
|
/third_party/skia/docs/examples/ |
H A D | Miter_Limit.cpp | 11 const SkScalar strokeWidth = 20; in REG_FIDDLE() local 13 SkScalar miterLength = strokeWidth * miterLimit; in REG_FIDDLE() 22 paint.setStrokeWidth(strokeWidth); in REG_FIDDLE() 30 paint.setStrokeWidth(strokeWidth); in REG_FIDDLE()
|
/third_party/skia/bench/ |
H A D | DashBench.cpp | 25 * 4. dots [1,1] ([N,N] where N=strokeWidth?) or arbitrary (e.g. [2,1] or [1,2,3,2]) 255 DrawPointsDashingBench(int dashLength, int strokeWidth, bool doAA) in DrawPointsDashingBench() argument 257 fName.printf("drawpointsdash_%d_%d%s", dashLength, strokeWidth, doAA ? "_aa" : "_bw"); in DrawPointsDashingBench() 258 fStrokeWidth = strokeWidth; in DrawPointsDashingBench() 381 DashGridBench(int dashLength, int strokeWidth, bool doAA) { in DashGridBench() argument 382 fName.printf("dashgrid_%d_%d%s", dashLength, strokeWidth, doAA ? "_aa" : "_bw"); in DashGridBench() 383 fStrokeWidth = strokeWidth; in DashGridBench()
|
/third_party/skia/tests/ |
H A D | BlurTest.cpp | 56 static const int strokeWidth = 4; variable 85 { 50 + strokeWidth/2, 50 + strokeWidth/2, 100, 100 }, 87 { 40, strokeWidth, 60, 50 - strokeWidth }, 127 paint.setStrokeWidth(SkIntToScalar(strokeWidth)); in DEF_TEST()
|
/third_party/skia/modules/skparagraph/src/ |
H A D | ParagraphPainterImpl.cpp | 21 SkColor color, SkScalar strokeWidth, in DecorationStyle() 23 : fColor(color), fStrokeWidth(strokeWidth), fDashPathEffect(dashPathEffect) { in DecorationStyle() 20 DecorationStyle( SkColor color, SkScalar strokeWidth, std::optional<DashPathEffect> dashPathEffect) DecorationStyle() argument
|
/third_party/skia/third_party/externals/oboe/apps/OboeTester/app/src/main/java/com/google/sample/oboe/manualtest/ |
H A D | WaveformView.java | 58 float strokeWidth = res.getDimension(R.dimen.waveform_stroke_width); in init() 59 mWavePaint.setStrokeWidth(strokeWidth); in init()
|
/third_party/skia/src/gpu/geometry/ |
H A D | GrAAConvexTessellator.h | 36 SkScalar strokeWidth = -1.0f, in GrAAConvexTessellator() 40 , fStrokeWidth(strokeWidth) in GrAAConvexTessellator()
|
/third_party/skia/modules/skparagraph/include/ |
H A D | ParagraphPainter.h | 31 DecorationStyle(SkColor color, SkScalar strokeWidth,
|
/third_party/skia/include/core/ |
H A D | SkStrokeRec.h | 118 SkScalar strokeWidth);
|