Home
last modified time | relevance | path

Searched refs:kIntervals (Results 1 – 4 of 4) sorted by relevance

/third_party/skia/gm/
Ddashcircle.cpp133 static constexpr SkScalar kIntervals[][2]{ in onDraw() local
146 static constexpr int kN = SK_ARRAY_COUNT(kIntervals); in onDraw()
157 sk_sp<SkPathEffect> deffects[SK_ARRAY_COUNT(kIntervals)]; in onDraw()
158 sk_sp<SkPathEffect> thinDEffects[SK_ARRAY_COUNT(kIntervals)]; in onDraw()
162 SkScalar scaledIntervals[2] = {kCircumference * kIntervals[i][0], in onDraw()
163 kCircumference * kIntervals[i][1]}; in onDraw()
167 scaledIntervals[0] = kThinCircumference * kIntervals[i][0]; in onDraw()
168 scaledIntervals[1] = kThinCircumference * kIntervals[i][1]; in onDraw()
Ddashing.cpp585 static constexpr SkScalar kIntervals[] = {5.f, 0.f, 2.f, 0.f}; variable
587 dashPaint.setPathEffect(SkDashPathEffect::Make(kIntervals, SK_ARRAY_COUNT(kIntervals), 0.f));
623 static constexpr SkScalar kIntervals[] = {10/kScale, 5/kScale}; variable
624 paint.setPathEffect(SkDashPathEffect::Make(kIntervals, SK_ARRAY_COUNT(kIntervals), 0.f));
630 static constexpr SkScalar kStep = kIntervals[0] + kIntervals[1];
632 canvas->translate(kIntervals[1], kIntervals[1]);
635 for (SkScalar x = -.5f*kIntervals[1]; x < 105/kScale; x += (kStep + kSubstep)) {
Dinversepaths.cpp47 constexpr SkScalar kIntervals[] = { 4.f, 3.f }; in make_dash() local
48 return SkDashPathEffect::Make(kIntervals, SK_ARRAY_COUNT(kIntervals), 0); in make_dash()
/third_party/skia/tests/
DGrStyledShapeTest.cpp760 static const SkScalar kIntervals[] = { 0.25, 3.f, 0.5, 2.f }; in make_dash() local
762 return SkDashPathEffect::Make(kIntervals, SK_ARRAY_COUNT(kIntervals), kPhase); in make_dash()
2292 static constexpr SkScalar kIntervals[] = {1, 2}; in DEF_TEST() local
2293 auto dash = SkDashPathEffect::Make(kIntervals, SK_ARRAY_COUNT(kIntervals), 1.5f); in DEF_TEST()