Home
last modified time | relevance | path

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

/third_party/skia/gm/
H A Ddashcircle.cpp133 static constexpr SkScalar kIntervals[][2]{
146 static constexpr int kN = SK_ARRAY_COUNT(kIntervals);
157 sk_sp<SkPathEffect> deffects[SK_ARRAY_COUNT(kIntervals)];
158 sk_sp<SkPathEffect> thinDEffects[SK_ARRAY_COUNT(kIntervals)];
162 SkScalar scaledIntervals[2] = {kCircumference * kIntervals[i][0],
163 kCircumference * kIntervals[i][1]};
167 scaledIntervals[0] = kThinCircumference * kIntervals[i][0];
168 scaledIntervals[1] = kThinCircumference * kIntervals[i][1];
H A Ddashing.cpp585 static constexpr SkScalar kIntervals[] = {5.f, 0.f, 2.f, 0.f}; in DEF_SIMPLE_GM() local
587 dashPaint.setPathEffect(SkDashPathEffect::Make(kIntervals, SK_ARRAY_COUNT(kIntervals), 0.f)); in DEF_SIMPLE_GM()
623 static constexpr SkScalar kIntervals[] = {10/kScale, 5/kScale}; in DEF_SIMPLE_GM() local
624 paint.setPathEffect(SkDashPathEffect::Make(kIntervals, SK_ARRAY_COUNT(kIntervals), 0.f)); in DEF_SIMPLE_GM()
630 static constexpr SkScalar kStep = kIntervals[0] + kIntervals[1]; in DEF_SIMPLE_GM()
632 canvas->translate(kIntervals[1], kIntervals[ in DEF_SIMPLE_GM()
[all...]
H A 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/
H A 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()

Completed in 7 milliseconds