Lines Matching refs:advance
63 SkPath1DPathEffectImpl(const SkPath& path, SkScalar advance, SkScalar phase, in SkPath1DPathEffectImpl() argument
65 SkASSERT(advance > 0 && !path.isEmpty()); in SkPath1DPathEffectImpl()
75 if (phase > advance) { in SkPath1DPathEffectImpl()
76 phase = SkScalarMod(phase, advance); in SkPath1DPathEffectImpl()
79 if (phase > advance) { in SkPath1DPathEffectImpl()
80 phase = SkScalarMod(phase, advance); in SkPath1DPathEffectImpl()
82 phase = advance - phase; in SkPath1DPathEffectImpl()
85 if (phase >= advance) { in SkPath1DPathEffectImpl()
90 fAdvance = advance; in SkPath1DPathEffectImpl()
108 SkScalar advance = buffer.readScalar(); in CreateProc() local
113 return buffer.isValid() ? SkPath1DPathEffect::Make(path, advance, phase, style) : nullptr; in CreateProc()
238 sk_sp<SkPathEffect> SkPath1DPathEffect::Make(const SkPath& path, SkScalar advance, SkScalar phase, in Make() argument
240 if (advance <= 0 || !SkScalarIsFinite(advance) || !SkScalarIsFinite(phase) || path.isEmpty()) { in Make()
243 return sk_sp<SkPathEffect>(new SkPath1DPathEffectImpl(path, advance, phase, style)); in Make()