Lines Matching refs:phase
36 SkScalar phase, Style style) : fPath(path)
39 // cleanup their phase parameter, inverting it so that it becomes an
41 if (phase < 0) {
42 phase = -phase;
43 if (phase > advance) {
44 phase = SkScalarMod(phase, advance);
47 if (phase > advance) {
48 phase = SkScalarMod(phase, advance);
50 phase = advance - phase;
52 // now catch the edge case where phase == advance (within epsilon)
53 if (phase >= advance) {
54 phase = 0;
56 SkASSERT(phase >= 0);
59 fInitialOffset = phase;
154 SkScalar phase = buffer.readScalar();
156 return SkPath1DPathEffect::Create(path, advance, phase, style);
200 str->appendf("advance: %.2f phase %.2f", fAdvance, fInitialOffset);
207 SkPathEffect* SkPath1DPathEffect::Create(const SkPath& path, SkScalar advance, SkScalar phase,
212 return new SkPath1DPathEffect(path, advance, phase, style);