Lines Matching refs:intervals

51     const SkScalar* intervals = strokeInfo.getDashIntervals();  in CanDrawDashLine()  local
52 if (0 == intervals[0] && 0 == intervals[1]) { in CanDrawDashLine()
58 if (SkPaint::kRound_Cap == cap && intervals[0] != 0.f) { in CanDrawDashLine()
124 static SkScalar calc_start_adjustment(const SkScalar intervals[2], SkScalar phase) { in calc_start_adjustment()
125 SkASSERT(phase < intervals[0] + intervals[1]); in calc_start_adjustment()
126 if (phase >= intervals[0] && phase != 0) { in calc_start_adjustment()
127 SkScalar srcIntervalLen = intervals[0] + intervals[1]; in calc_start_adjustment()
133 static SkScalar calc_end_adjustment(const SkScalar intervals[2], const SkPoint pts[2], in calc_end_adjustment()
138 SkScalar srcIntervalLen = intervals[0] + intervals[1]; in calc_end_adjustment()
148 if (*endingInt > intervals[0]) { in calc_end_adjustment()
149 if (0 == intervals[0]) { in calc_end_adjustment()
152 return *endingInt - intervals[0]; in calc_end_adjustment()
698 const SkScalar* intervals = strokeInfo.getDashIntervals(); in create_batch() local
707 SkASSERT(phase >= 0 && phase < intervals[0] + intervals[1]); in create_batch()
726 SkScalar offInterval = intervals[1] * geometry.fParallelScale; in create_batch()
743 geometry.fIntervals[0] = intervals[0]; in create_batch()
744 geometry.fIntervals[1] = intervals[1]; in create_batch()
1265 SkScalar intervals[2]; in DRAW_BATCH_TEST_DEFINE() local
1281 intervals[0] = random->nextRangeScalar(kIntervalMin, kIntervalMax); in DRAW_BATCH_TEST_DEFINE()
1282 intervals[1] = random->nextRangeScalar(kIntervalMin, kIntervalMax); in DRAW_BATCH_TEST_DEFINE()
1285 intervals[0] = 0.f; in DRAW_BATCH_TEST_DEFINE()
1286 intervals[1] = random->nextRangeScalar(kIntervalMin, kIntervalMax); in DRAW_BATCH_TEST_DEFINE()
1289 intervals[0] = random->nextRangeScalar(kIntervalMin, kIntervalMax); in DRAW_BATCH_TEST_DEFINE()
1290 intervals[1] = 0.f; in DRAW_BATCH_TEST_DEFINE()
1296 SkScalar phase = random->nextRangeScalar(0, intervals[0] + intervals[1]); in DRAW_BATCH_TEST_DEFINE()
1306 info.fIntervals = intervals; in DRAW_BATCH_TEST_DEFINE()