Home
last modified time | relevance | path

Searched refs:strokeWidth (Results 1 – 25 of 146) sorted by relevance

123456

/third_party/skia/src/gpu/tessellate/
DStrokeTessellator.h71 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()
/third_party/skia/gm/
Dglyph_pos.cpp31 SkScalar strokeWidth,
35 SkScalar strokeWidth, in draw_gm() argument
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() argument
94 paint.setStrokeWidth(strokeWidth); in drawTestCase()
[all …]
Dstroketext.cpp42 SkScalar strokeWidth) { in draw_text_stroked() argument
46 if (strokeWidth > 0) { in draw_text_stroked()
54 p.setStrokeWidth(strokeWidth); in draw_text_stroked()
Dpatheffects.cpp304 StrokeLineInflated(float strokeWidth, float pxInflate) in StrokeLineInflated() argument
305 : fRadius(strokeWidth / 2.f), fPxInflate(pxInflate) {} in StrokeLineInflated()
374 const float strokeWidth = 16; in onDraw() local
376 sk_sp<SkPathEffect> pathEffect(new StrokeLineInflated(strokeWidth, pxInflate)); in onDraw()
398 paint.setStrokeWidth(strokeWidth); in onDraw()
/third_party/flutter/skia/gm/
Dglyph_pos.cpp31 SkScalar strokeWidth,
35 SkScalar strokeWidth, in draw_gm() argument
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() argument
94 paint.setStrokeWidth(strokeWidth); in drawTestCase()
[all …]
Dstroketext.cpp41 SkScalar strokeWidth) { in draw_text_stroked() argument
45 if (strokeWidth > 0) { in draw_text_stroked()
53 p.setStrokeWidth(strokeWidth); in draw_text_stroked()
/third_party/flutter/flutter/packages/flutter/lib/src/widgets/
Dplaceholder.dart13 this.strokeWidth,
17 final double strokeWidth;
24 ..strokeWidth = strokeWidth;
36 || oldPainter.strokeWidth != strokeWidth;
57 this.strokeWidth = 2.0,
66 final double strokeWidth;
93 strokeWidth: strokeWidth,
/third_party/flutter/skia/src/core/
DSkDrawProcs.h14 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()
DSkStrokeRec.cpp150 SkScalar strokeWidth) { in GetInflationRadius() argument
151 if (strokeWidth < 0) { // fill in GetInflationRadius()
153 } else if (0 == strokeWidth) { in GetInflationRadius()
168 return strokeWidth/2 * multiplier; in GetInflationRadius()
/third_party/skia/src/core/
DSkDrawProcs.h14 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()
DSkStrokeRec.cpp150 SkScalar strokeWidth) { in GetInflationRadius() argument
151 if (strokeWidth < 0) { // fill in GetInflationRadius()
153 } else if (0 == strokeWidth) { in GetInflationRadius()
168 return strokeWidth/2 * multiplier; in GetInflationRadius()
/third_party/flutter/flutter/packages/flutter/test/rendering/
Dmock_canvas.dart180 /// The [Paint]-related arguments (`color`, `strokeWidth`, `hasMaskFilter`,
185 …void rect({ Rect rect, Color color, double strokeWidth, bool hasMaskFilter, PaintingStyle style });
210 /// The [Paint]-related arguments (`color`, `strokeWidth`, `hasMaskFilter`,
215 …void rrect({ RRect rrect, Color color, double strokeWidth, bool hasMaskFilter, PaintingStyle style…
228 /// The [Paint]-related arguments (`color`, `strokeWidth`, `hasMaskFilter`,
233 …void drrect({ RRect outer, RRect inner, Color color, double strokeWidth, bool hasMaskFilter, Paint…
246 /// The [Paint]-related arguments (`color`, `strokeWidth`, `hasMaskFilter`,
251 …void circle({ double x, double y, double radius, Color color, double strokeWidth, bool hasMaskFilt…
269 /// The [Paint]-related arguments (`color`, `strokeWidth`, `hasMaskFilter`,
274 …void path({ Iterable<Offset> includes, Iterable<Offset> excludes, Color color, double strokeWidth,…
[all …]
/third_party/flutter/skia/src/gpu/ops/
DGrAALinearizingConvexPathRenderer.cpp66 SkScalar strokeWidth = args.fViewMatrix->getMaxScale() * stroke.getWidth(); in onCanDrawPath() local
67 if (strokeWidth < 1.0f && stroke.getStyle() == SkStrokeRec::kStroke_Style) { in onCanDrawPath()
70 if (strokeWidth > kMaxStrokeWidth || in onCanDrawPath()
128 SkScalar strokeWidth, in Make() argument
135 strokeWidth, style, join, miterLimit, in Make()
143 SkScalar strokeWidth, in AAFlatteningConvexPathOp() argument
150 PathData{color, viewMatrix, path, strokeWidth, style, join, miterLimit}); in AAFlatteningConvexPathOp()
154 SkScalar w = strokeWidth; in AAFlatteningConvexPathOp()
349 SkScalar strokeWidth = fill ? -1.0f : stroke.getWidth(); in onDrawPath() local
354 args.fContext, std::move(args.fPaint), *args.fViewMatrix, path, strokeWidth, in onDrawPath()
[all …]
DGrOvalOpFactory.cpp1030 SkScalar strokeWidth = viewMatrix.mapRadius(stroke.getWidth()); in CircleOp() local
1040 if (SkScalarNearlyZero(strokeWidth)) { in CircleOp()
1043 halfWidth = SkScalarHalf(strokeWidth); in CircleOp()
1445 SkScalar strokeWidth, in Make() argument
1451 SkASSERT(strokeWidth < 2 * radius); in Make()
1453 center, radius, strokeWidth, startAngle, in Make()
1459 SkScalar strokeWidth, SkScalar startAngle, SkScalar onAngle, in ButtCapDashedCircleOp() argument
1465 strokeWidth = viewMatrix.mapRadius(strokeWidth); in ButtCapDashedCircleOp()
1486 if (SkScalarNearlyZero(strokeWidth)) { in ButtCapDashedCircleOp()
1489 halfWidth = SkScalarHalf(strokeWidth); in ButtCapDashedCircleOp()
[all …]
/third_party/skia/src/gpu/ops/
DAALinearizingConvexPathRenderer.cpp91 SkScalar strokeWidth, in Make() argument
98 strokeWidth, style, join, miterLimit, in Make()
106 SkScalar strokeWidth, in AAFlatteningConvexPathOp() argument
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()
[all …]
DGrOvalOpFactory.cpp1044 SkScalar strokeWidth = viewMatrix.mapRadius(stroke.getWidth()); in CircleOp() local
1054 if (SkScalarNearlyZero(strokeWidth)) { in CircleOp()
1057 halfWidth = SkScalarHalf(strokeWidth); in CircleOp()
1503 SkScalar strokeWidth, in Make() argument
1509 SkASSERT(strokeWidth < 2 * radius); in Make()
1511 center, radius, strokeWidth, startAngle, in Make()
1517 SkScalar strokeWidth, SkScalar startAngle, SkScalar onAngle, in ButtCapDashedCircleOp() argument
1524 strokeWidth = viewMatrix.mapRadius(strokeWidth); in ButtCapDashedCircleOp()
1545 if (SkScalarNearlyZero(strokeWidth)) { in ButtCapDashedCircleOp()
1548 halfWidth = SkScalarHalf(strokeWidth); in ButtCapDashedCircleOp()
[all …]
/third_party/skia/docs/examples/
DMiter_Limit.cpp11 const SkScalar strokeWidth = 20; in draw() local
13 SkScalar miterLength = strokeWidth * miterLimit; in draw()
22 paint.setStrokeWidth(strokeWidth); in draw()
30 paint.setStrokeWidth(strokeWidth); in draw()
/third_party/flutter/skia/docs/examples/
DMiter_Limit.cpp11 const SkScalar strokeWidth = 20; in draw() local
13 SkScalar miterLength = strokeWidth * miterLimit; in draw()
22 paint.setStrokeWidth(strokeWidth); in draw()
30 paint.setStrokeWidth(strokeWidth); in draw()
/third_party/flutter/flutter/packages/flutter/lib/src/material/
Dprogress_indicator.dart329 this.strokeWidth,
344 final double strokeWidth;
358 ..strokeWidth = strokeWidth
363 ..strokeWidth = strokeWidth
383 || oldPainter.strokeWidth != strokeWidth;
420 this.strokeWidth = 4.0,
433 final double strokeWidth;
502 strokeWidth: widget.strokeWidth,
540 double strokeWidth,
549 strokeWidth: strokeWidth,
[all …]
/third_party/flutter/engine/flutter/lib/web_ui/lib/src/engine/
Ddom_canvas.dart86 … 'translate(${left - (paint.strokeWidth / 2.0)}px, ${top - (paint.strokeWidth / 2.0)}px)';
95 left - (paint.strokeWidth / 2.0), top - (paint.strokeWidth / 2.0));
115 ..width = '${right - left - paint.strokeWidth}px'
116 ..height = '${bottom - top - paint.strokeWidth}px'
117 ..border = '${paint.strokeWidth}px solid $cssColor';
Drecording_canvas.dart171 final double strokeWidth = math.max(paint.strokeWidth, 1.0);
180 math.min(p1.dx, p2.dx) - strokeWidth,
181 math.min(p1.dy, p2.dy) - strokeWidth,
182 math.max(p1.dx, p2.dx) + strokeWidth,
183 math.max(p1.dy, p2.dy) + strokeWidth);
201 if (paint.strokeWidth != null && paint.strokeWidth != 0) {
202 _paintBounds.grow(rect.inflate(paint.strokeWidth / 2.0));
212 final double strokeWidth =
213 paint.strokeWidth == null ? 0 : paint.strokeWidth;
214 final double left = math.min(rrect.left, rrect.right) - strokeWidth;
[all …]
/third_party/flutter/skia/experimental/svg/model/
DSkSVGNode.cpp106 void SkSVGNode::setStrokeWidth(const SkSVGLength& strokeWidth) { in setStrokeWidth() argument
107 fPresentationAttributes.fStrokeWidth.set(strokeWidth); in setStrokeWidth()
182 if (const SkSVGLengthValue* strokeWidth = v.as<SkSVGLengthValue>()) { in onSetAttribute() local
183 this->setStrokeWidth(*strokeWidth); in onSetAttribute()
/third_party/flutter/flutter/packages/flutter/test/widgets/
Dplaceholder_test.dart33 expect(tester.renderObject(find.byType(Placeholder)), paints..path(strokeWidth: 2.0));
34 await tester.pumpWidget(const Placeholder(strokeWidth: 10.0));
35 expect(tester.renderObject(find.byType(Placeholder)), paints..path(strokeWidth: 10.0));
/third_party/flutter/flutter/packages/flutter/test/material/
Dtoggle_buttons_test.dart804 strokeWidth: defaultBorderWidth,
810 strokeWidth: defaultBorderWidth,
838 strokeWidth: defaultBorderWidth,
844 strokeWidth: defaultBorderWidth,
871 strokeWidth: defaultBorderWidth,
877 strokeWidth: defaultBorderWidth,
918 strokeWidth: customWidth,
924 strokeWidth: customWidth,
954 strokeWidth: customWidth,
960 strokeWidth: customWidth,
[all …]
/third_party/flutter/skia/bench/
DDashBench.cpp256 DrawPointsDashingBench(int dashLength, int strokeWidth, bool doAA) in DrawPointsDashingBench() argument
258 fName.printf("drawpointsdash_%d_%d%s", dashLength, strokeWidth, doAA ? "_aa" : "_bw"); in DrawPointsDashingBench()
259 fStrokeWidth = strokeWidth; in DrawPointsDashingBench()
382 DashGridBench(int dashLength, int strokeWidth, bool doAA) { in DashGridBench() argument
383 fName.printf("dashgrid_%d_%d%s", dashLength, strokeWidth, doAA ? "_aa" : "_bw"); in DashGridBench()
384 fStrokeWidth = strokeWidth; in DashGridBench()

123456