Home
last modified time | relevance | path

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

/external/skia/gm/
Ddashcircle.cpp133 static constexpr SkScalar kIntervals[][2]{ in onDraw() local
146 static constexpr int kN = std::size(kIntervals); in onDraw()
157 sk_sp<SkPathEffect> deffects[std::size(kIntervals)]; in onDraw()
158 sk_sp<SkPathEffect> thinDEffects[std::size(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, std::size(kIntervals), 0.f));
623 static constexpr SkScalar kIntervals[] = {10/kScale, 5/kScale}; variable
624 paint.setPathEffect(SkDashPathEffect::Make(kIntervals, std::size(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.cpp50 constexpr SkScalar kIntervals[] = { 4.f, 3.f }; in make_dash() local
51 return SkDashPathEffect::Make(kIntervals, std::size(kIntervals), 0); in make_dash()
/external/skia/tests/
DGrStyledShapeTest.cpp786 static const SkScalar kIntervals[] = { 0.25, 3.f, 0.5, 2.f }; in make_dash() local
788 return SkDashPathEffect::Make(kIntervals, std::size(kIntervals), kPhase); in make_dash()
2318 static constexpr SkScalar kIntervals[] = {1, 2}; in DEF_TEST() local
2319 auto dash = SkDashPathEffect::Make(kIntervals, std::size(kIntervals), 1.5f); in DEF_TEST()