Lines Matching refs:phase
31 SkScalar phase = SkIntToScalar(0),
40 p.setPathEffect(SkDashPathEffect::Make(intervals, 2, phase));
175 SkScalar phase = vals[0] / 2;
176 paint.setPathEffect(SkDashPathEffect::Make(vals, count, phase));
200 SkScalar phase,
215 p.setPathEffect(SkDashPathEffect::Make(intervals, 2, phase));
237 // 1on/1off 1x1 squares with phase of 0 - points fastpath
243 // 1on/1off 1x1 squares with phase of .5 - rects fastpath (due to partial squares)
249 // 1on/1off 1x1 squares with phase of 1 - points fastpath
255 // 1on/1off 1x1 squares with phase of 1 and non-integer length - rects fastpath
261 // 255on/255off 1x1 squares with phase of 0 - rects fast path
267 // 1on/1off 3x3 squares with phase of 0 - points fast path
273 // 1on/1off 3x3 squares with phase of 1.5 - rects fast path
279 // 1on/1off 1x1 circles with phase of 1 - no fast path yet
285 // 1on/1off 3x3 circles with phase of 1 - no fast path yet
300 // 3on/3off 3x1 rects - should use rect fast path regardless of phase
301 for (int phase = 0; phase <= 3; ++phase) {
303 canvas->translate(SkIntToScalar(phase*110+2),
305 this->drawDashedLines(canvas, 100, SkIntToScalar(phase), SkIntToScalar(3), 1, false);
445 int phase = 0;
448 paint.setStrokeWidth(SkIntToScalar(phase+1));
449 paint.setColor(gColors[phase]);
453 SkIntToScalar(phase),
455 phase = (phase + 1) % kIntervalLength;
459 paint.setStrokeWidth(SkIntToScalar(phase+1));
460 paint.setColor(gColors[phase]);
464 SkIntToScalar(phase),
466 phase = (phase + 1) % kIntervalLength;