Lines Matching full:phase
39 SkPath1DPathEffect::SkPath1DPathEffect(const SkPath& path, SkScalar advance, SkScalar phase, in SkPath1DPathEffect() argument
44 // cleanup their phase parameter, inverting it so that it becomes an in SkPath1DPathEffect()
46 if (phase < 0) { in SkPath1DPathEffect()
47 phase = -phase; 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()
57 // now catch the edge case where phase == advance (within epsilon) in SkPath1DPathEffect()
58 if (phase >= advance) { in SkPath1DPathEffect()
59 phase = 0; in SkPath1DPathEffect()
61 SkASSERT(phase >= 0); in SkPath1DPathEffect()
64 fInitialOffset = phase; in SkPath1DPathEffect()
160 SkScalar phase = 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()