Home
last modified time | relevance | path

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

123

/external/skia/gm/
Dglyph_pos.cpp23 SkScalar strokeWidth,
27 SkScalar strokeWidth, in draw_gm() argument
34 drawTestCase(canvas, 1.0f, strokeWidth, strokeStyle); in draw_gm()
37 drawTestCase(canvas, 3.0f, strokeWidth, strokeStyle); in draw_gm()
43 drawTestCase(canvas, 1.0f, strokeWidth, strokeStyle); in draw_gm()
50 drawTestCase(canvas, 1.0f, strokeWidth, strokeStyle); in draw_gm()
62 drawTestCase(canvas, 1.0f, strokeWidth, strokeStyle); in draw_gm()
75 drawTestCase(canvas, 1.0f, strokeWidth, strokeStyle); in draw_gm()
81 SkScalar strokeWidth, in drawTestCase() argument
88 paint.setStrokeWidth(strokeWidth); in drawTestCase()
[all …]
Dstroketext.cpp28 static void draw_text_stroked(SkCanvas* canvas, const SkPaint& paint, SkScalar strokeWidth) { in draw_text_stroked() argument
32 if (strokeWidth > 0) { in draw_text_stroked()
40 p.setStrokeWidth(strokeWidth); in draw_text_stroked()
Dshadows.cpp20 static void setup(SkPaint* paint, SkColor c, SkScalar strokeWidth) { in setup() argument
22 if (strokeWidth < 0) { in setup()
26 paint->setStrokeWidth(strokeWidth); in setup()
Dquadpaths.cpp32 SkScalar strokeWidth) { in drawPath() argument
36 paint.setStrokeWidth(strokeWidth); in drawPath()
175 SkScalar strokeWidth) { in drawPath() argument
179 paint.setStrokeWidth(strokeWidth); in drawPath()
Dninepatchstretch.cpp29 const SkScalar strokeWidth = SkIntToScalar(6); in make_image() local
30 const SkScalar radius = SkIntToScalar(kFixed) - strokeWidth/2; in make_image()
Dlinepaths.cpp18 SkScalar strokeWidth) { in drawPath() argument
22 paint.setStrokeWidth(strokeWidth); in drawPath()
Daddarc.cpp189 const SkScalar strokeWidth = paint.getStrokeWidth(); in onDraw() local
190 const SkScalar delta = strokeWidth * 3 / 2; in onDraw()
198 while (r.width() > strokeWidth * 2) { in onDraw()
Dcubicpaths.cpp143 SkScalar strokeWidth) { in drawPath() argument
147 paint.setStrokeWidth(strokeWidth); in drawPath()
287 SkScalar strokeWidth) { in drawPath() argument
291 paint.setStrokeWidth(strokeWidth); in drawPath()
Ddashing.cpp213 int strokeWidth, in drawDashedLines() argument
218 p.setStrokeWidth(SkIntToScalar(strokeWidth)); in drawDashedLines()
230 for (int y = 0; y < 100; y += 10*strokeWidth) { in drawDashedLines()
239 for (int x = 0; x < 100; x += 14*strokeWidth) { in drawDashedLines()
Dlattice.cpp33 const SkScalar strokeWidth = SkIntToScalar(6); in make_image() local
34 const SkScalar radius = SkIntToScalar(kCap) - strokeWidth/2; in make_image()
/external/skia/src/gpu/ops/
DGrAALinearizingConvexPathRenderer.cpp58 SkScalar strokeWidth = args.fViewMatrix->getMaxScale() * stroke.getWidth(); in onCanDrawPath() local
59 if (strokeWidth < 1.0f && stroke.getStyle() == SkStrokeRec::kStroke_Style) { in onCanDrawPath()
62 return strokeWidth <= kMaxStrokeWidth && in onCanDrawPath()
126 SkScalar strokeWidth, in Make() argument
131 color, viewMatrix, path, strokeWidth, style, join, miterLimit)); in Make()
153 SkScalar strokeWidth, in AAFlatteningConvexPathOp() argument
159 PathData{color, viewMatrix, path, strokeWidth, style, join, miterLimit}); in AAFlatteningConvexPathOp()
163 SkScalar w = strokeWidth; in AAFlatteningConvexPathOp()
335 SkScalar strokeWidth = fill ? -1.0f : stroke.getWidth(); in onDrawPath() local
341 strokeWidth, stroke.getStyle(), join, miterLimit); in onDrawPath()
[all …]
DGrDashOp.cpp179 SkScalar startInterval, SkScalar endInterval, SkScalar strokeWidth, in setup_dashed_rect() argument
190 SkScalar radius = SkScalarHalf(strokeWidth) - 0.5f; in setup_dashed_rect()
207 SkScalar halfStroke = SkScalarHalf(strokeWidth); in setup_dashed_rect()
468 SkScalar strokeWidth = args.fSrcStrokeWidth * args.fPerpendicularScale; in onPrepareDraws() local
470 if ((strokeWidth < 1.f && useAA) || 0.f == strokeWidth) { in onPrepareDraws()
471 strokeWidth = 1.f; in onPrepareDraws()
474 SkScalar halfDevStroke = strokeWidth * 0.5f; in onPrepareDraws()
478 devIntervals[0] += strokeWidth; in onPrepareDraws()
479 devIntervals[1] -= strokeWidth; in onPrepareDraws()
555 draw.fStrokeWidth = strokeWidth; in onPrepareDraws()
[all …]
DGrAAStrokeRectOp.cpp46 SkScalar strokeWidth, bool miterStroke) { in compute_rects() argument
51 if (strokeWidth > 0) { in compute_rects()
52 devStrokeSize.set(strokeWidth, strokeWidth); in compute_rects()
603 SkScalar strokeWidth = random->nextUScalar1() * minDim; in DRAW_OP_TEST_DEFINE() local
608 rec.setStrokeStyle(strokeWidth); in DRAW_OP_TEST_DEFINE()
DGrOvalOpFactory.cpp651 SkScalar strokeWidth = viewMatrix.mapRadius(stroke.getWidth()); in Make() local
661 if (SkScalarNearlyZero(strokeWidth)) { in Make()
664 halfWidth = SkScalarHalf(strokeWidth); in Make()
1179 SkScalar strokeWidth = stroke.getWidth(); in Make() local
1181 strokeWidth * (viewMatrix[SkMatrix::kMScaleX] + viewMatrix[SkMatrix::kMSkewY])); in Make()
1183 strokeWidth * (viewMatrix[SkMatrix::kMSkewX] + viewMatrix[SkMatrix::kMScaleY])); in Make()
1401 SkScalar strokeWidth = stroke.getWidth(); in Make() local
1403 if (SkScalarNearlyZero(strokeWidth)) { in Make()
1404 strokeWidth = SK_ScalarHalf; in Make()
1406 strokeWidth *= SK_ScalarHalf; in Make()
[all …]
DGrNonAAStrokeRectOp.cpp204 SkScalar strokeWidth = random->nextBool() ? 0.0f : 2.0f; in DRAW_OP_TEST_DEFINE() local
206 paint.setStrokeWidth(strokeWidth); in DRAW_OP_TEST_DEFINE()
/external/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.cpp139 SkScalar strokeWidth, in get_inflation_bounds() argument
141 if (strokeWidth < 0) { // fill in get_inflation_bounds()
143 } else if (0 == strokeWidth) { in get_inflation_bounds()
147 SkScalar radius = SkScalarHalf(strokeWidth); in get_inflation_bounds()
/external/skia/experimental/svg/model/
DSkSVGNode.cpp91 void SkSVGNode::setStrokeWidth(const SkSVGLength& strokeWidth) { in setStrokeWidth() argument
92 fPresentationAttributes.fStrokeWidth.set(strokeWidth); in setStrokeWidth()
143 if (const SkSVGLengthValue* strokeWidth = v.as<SkSVGLengthValue>()) { in onSetAttribute() local
144 this->setStrokeWidth(*strokeWidth); in onSetAttribute()
/external/skia/src/effects/shadows/
DSkAmbientShadowMaskFilter.cpp223 const SkScalar strokeWidth = srcSpaceAmbientRadius * umbraAlpha; in directFilterRRectMaskGPU() local
227 SkScalar ambientPathOutset = SkTMax(srcSpaceAmbientRadius - strokeWidth * 0.5f, in directFilterRRectMaskGPU()
238 const SkScalar devSpaceAmbientRadius = strokeWidth * scaleFactor; in directFilterRRectMaskGPU()
245 ambientStrokeRec.setStrokeStyle(strokeWidth, false); in directFilterRRectMaskGPU()
DSkSpotShadowMaskFilter.cpp276 SkScalar strokeWidth = srcSpaceSpotRadius + insetAmount; in directFilterRRectMaskGPU() local
277 SkScalar strokedArea = 2.0f*strokeWidth * in directFilterRRectMaskGPU()
300 spotStrokeRec.setStrokeStyle(strokeWidth, false); in directFilterRRectMaskGPU()
/external/skia/bench/
DDashBench.cpp257 DrawPointsDashingBench(int dashLength, int strokeWidth, bool doAA) in DrawPointsDashingBench() argument
259 fName.printf("drawpointsdash_%d_%d%s", dashLength, strokeWidth, doAA ? "_aa" : "_bw"); in DrawPointsDashingBench()
260 fStrokeWidth = strokeWidth; in DrawPointsDashingBench()
383 DashGridBench(int dashLength, int strokeWidth, bool doAA) { in DashGridBench() argument
384 fName.printf("dashgrid_%d_%d%s", dashLength, strokeWidth, doAA ? "_aa" : "_bw"); in DashGridBench()
385 fStrokeWidth = strokeWidth; in DashGridBench()
/external/ImageMagick/Magick++/demo/
Dshapes.cpp56 image.strokeWidth( 5 ); in main()
64 image.strokeWidth( 5 ); in main()
/external/skia/tests/
DBlurTest.cpp33 static const int strokeWidth = 4; variable
62 { 50 + strokeWidth/2, 50 + strokeWidth/2, 100, 100 },
64 { 40, strokeWidth, 60, 50 - strokeWidth },
107 paint.setStrokeWidth(SkIntToScalar(strokeWidth)); in DEF_TEST()
/external/skia/samplecode/
DSampleClip.cpp63 static void show_stroke(SkCanvas* canvas, bool doAA, SkScalar strokeWidth, int n) { in show_stroke() argument
68 paint.setStrokeWidth(strokeWidth); in show_stroke()
/external/ImageMagick/Magick++/lib/Magick++/
DOptions.h241 void strokeWidth(const double strokeWidth_);
242 double strokeWidth(void) const;

123