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()
48 if (phase > advance) { in SkPath1DPathEffect()
49 phase = SkScalarMod(phase, advance); in SkPath1DPathEffect()
52 if (phase > advance) { in SkPath1DPathEffect()
53 phase = SkScalarMod(phase, advance); in SkPath1DPathEffect()
55 phase = advance - phase; in SkPath1DPathEffect()
58 if (phase >= advance) { in SkPath1DPathEffect()
63 fAdvance = advance; in SkPath1DPathEffect()
157 SkScalar advance = buffer.readScalar(); in CreateProc() local
162 return buffer.isValid() ? SkPath1DPathEffect::Make(path, advance, phase, style) : nullptr; in CreateProc()
204 sk_sp<SkPathEffect> SkPath1DPathEffect::Make(const SkPath& path, SkScalar advance, SkScalar phase, in Make() argument
206 if (advance <= 0 || !SkScalarIsFinite(advance) || !SkScalarIsFinite(phase) || path.isEmpty()) { in Make()
209 return sk_sp<SkPathEffect>(new SkPath1DPathEffect(path, advance, phase, style)); in Make()