Lines Matching refs:advance
39 SkPath1DPathEffect::SkPath1DPathEffect(const SkPath& path, SkScalar advance, SkScalar phase, in SkPath1DPathEffect() argument
41 SkASSERT(advance > 0 && !path.isEmpty()); in SkPath1DPathEffect()
52 if (phase > advance) { in SkPath1DPathEffect()
53 phase = SkScalarMod(phase, advance); in SkPath1DPathEffect()
56 if (phase > advance) { in SkPath1DPathEffect()
57 phase = SkScalarMod(phase, advance); in SkPath1DPathEffect()
59 phase = advance - phase; in SkPath1DPathEffect()
62 if (phase >= advance) { in SkPath1DPathEffect()
67 fAdvance = advance; in SkPath1DPathEffect()
161 SkScalar advance = buffer.readScalar(); in CreateProc() local
166 return buffer.isValid() ? SkPath1DPathEffect::Make(path, advance, phase, style) : nullptr; in CreateProc()
208 sk_sp<SkPathEffect> SkPath1DPathEffect::Make(const SkPath& path, SkScalar advance, SkScalar phase, in Make() argument
210 if (advance <= 0 || !SkScalarIsFinite(advance) || !SkScalarIsFinite(phase) || path.isEmpty()) { in Make()
213 return sk_sp<SkPathEffect>(new SkPath1DPathEffect(path, advance, phase, style)); in Make()