Home
last modified time | relevance | path

Searched refs:miter (Results 1 - 10 of 10) sorted by relevance

/third_party/skia/src/effects/
H A DSkOpPathEffect.cpp133 SkScalar miter) { in Make()
134 if (!SkScalarsAreFinite(width, miter) || width < 0 || miter < 0) { in Make()
137 return sk_sp<SkPathEffect>(new SkStrokePE(width, join, cap, miter)); in Make()
140 SkStrokePE::SkStrokePE(SkScalar width, SkPaint::Join join, SkPaint::Cap cap, SkScalar miter) in SkStrokePE() argument
141 : fWidth(width), fMiter(miter), fJoin(join), fCap(cap) {} in SkStrokePE()
170 SkScalar miter = buffer.readScalar(); in CreateProc() local
173 return buffer.isValid() ? SkStrokePathEffect::Make(width, join, cap, miter) : nullptr; in CreateProc()
132 Make(SkScalar width, SkPaint::Join join, SkPaint::Cap cap, SkScalar miter) Make() argument
H A DSkOpPE.h62 SkStrokePE(SkScalar width, SkPaint::Join, SkPaint::Cap, SkScalar miter);
/third_party/skia/src/gpu/
H A DGrStyle.cpp27 // One for res scale, one for style/cap/join, one for miter limit, and one for width. in KeySize()
82 SkScalar miter = -1.f; in WriteKey() local
88 // Miter limit only affects miter joins in WriteKey()
90 miter = style.strokeRec().getMiter(); in WriteKey()
98 memcpy(&key[i++], &miter, sizeof(miter)); in WriteKey()
/third_party/skia/src/gpu/geometry/
H A DGrAAConvexTessellator.cpp572 SkPoint miter = previousRing.bisector(cur);
573 miter.setLength(-outset);
574 miter += fPts[originalIdx];
577 if (!duplicate_pt(miter, this->point(perp1Idx))) {
579 miterIdx = this->addPt(miter, -outset, coverage, false, kSharp_CurveState);
592 SkPoint miter = previousRing.bisector(cur);
603 miter.setLength(-SkScalarSqrt(lengthSq));
604 miter += fPts[originalIdx];
607 if (!duplicate_pt(miter, this->point(perp1Idx))) {
609 miterIdx = this->addPt(miter,
[all...]
/third_party/skia/include/effects/
H A DSkOpPathEffect.h36 SkScalar miter = 4);
/third_party/skia/src/c/
H A Dsk_paint.cpp96 void sk_paint_set_stroke_miter(sk_paint_t* cpaint, float miter) { in sk_paint_set_stroke_miter() argument
97 AsPaint(cpaint)->setStrokeMiter(miter); in sk_paint_set_stroke_miter()
/third_party/skia/include/c/
H A Dsk_paint.h23 stroke miter : 4.0f
81 Return the paint's stroke miter value. This is used to control the
82 behavior of miter joins when the joins angle is sharp.
86 Set the paint's stroke miter value. This is used to control the
87 behavior of miter joins when the joins angle is sharp. This value
90 SK_API void sk_paint_set_stroke_miter(sk_paint_t*, float miter);
/third_party/skia/tests/
H A DPaintTest.cpp72 SkScalar miter = std::max(SK_Scalar1, paint.getStrokeMiter()); in DEF_TEST() local
74 paint.getStrokeWidth() * miter : in DEF_TEST()
H A DGrStyledShapeTest.cpp1067 auto setMiterJoinAndLimit = [](SkPaint* p, SkScalar miter) { in test_miter_limit()
1069 p->setStrokeMiter(miter); in test_miter_limit()
1072 auto setOtherJoinAndLimit = [](SkPaint* p, SkScalar miter) { in test_miter_limit()
1074 p->setStrokeMiter(miter); in test_miter_limit()
1083 // The miter limit should affect stroked and dashed-stroked cases when the join type is in test_miter_limit()
1084 // miter. in test_miter_limit()
1093 // The miter limit should not affect stroked and dashed-stroked cases when the join type is in test_miter_limit()
1094 // not miter. in test_miter_limit()
/third_party/skia/include/core/
H A DSkPaint.h308 @return zero and greater miter limit
314 Has no effect if miter is less than zero.
316 @param miter zero and greater miter limit
320 void setStrokeMiter(SkScalar miter);
342 Choose miter join to draw sharp corners. Choose round join to draw a circle with a
351 kMiter_Join, //!< extends to miter limit

Completed in 9 milliseconds