Searched refs:dashInfo (Results 1 – 4 of 4) sorted by relevance
245 SkPathEffect::DashInfo dashInfo; in TestStrokeInfo() local246 dashInfo.fCount = random->nextRangeU(1, 50) * 2; in TestStrokeInfo()247 dashInfo.fIntervals = new SkScalar[dashInfo.fCount]; in TestStrokeInfo()249 for (int i = 0; i < dashInfo.fCount; i++) { in TestStrokeInfo()250 dashInfo.fIntervals[i] = random->nextRangeScalar(SkDoubleToScalar(0.01), in TestStrokeInfo()252 sum += dashInfo.fIntervals[i]; in TestStrokeInfo()254 dashInfo.fPhase = random->nextRangeScalar(0, sum); in TestStrokeInfo()255 strokeInfo.setDashInfo(dashInfo); in TestStrokeInfo()256 delete[] dashInfo.fIntervals; in TestStrokeInfo()
93 SkPathEffect::DashInfo dashInfo; in setDashInfo() local94 fDashType = pe->asADash(&dashInfo); in setDashInfo()96 fIntervals.reset(dashInfo.fCount); in setDashInfo()97 dashInfo.fIntervals = fIntervals.get(); in setDashInfo()98 pe->asADash(&dashInfo); in setDashInfo()99 fDashPhase = dashInfo.fPhase; in setDashInfo()
366 SkPathEffect::DashInfo dashInfo; in apply_paint_patheffect() local367 SkPathEffect::DashType dashType = pathEffect->asADash(&dashInfo); in apply_paint_patheffect()369 dashInfo.fIntervals = (SkScalar*) sk_malloc_throw(dashInfo.fCount * sizeof(SkScalar)); in apply_paint_patheffect()370 pathEffect->asADash(&dashInfo); in apply_paint_patheffect()373 for (int32_t i = 0; i < dashInfo.fCount; i++) { in apply_paint_patheffect()374 intervals.append(Json::Value(dashInfo.fIntervals[i])); in apply_paint_patheffect()376 free(dashInfo.fIntervals); in apply_paint_patheffect()378 dashing[SKJSONCANVAS_ATTRIBUTE_PHASE] = dashInfo.fPhase; in apply_paint_patheffect()
978 SkPathEffect::DashInfo dashInfo; in apply_paint_patheffect() local979 SkPathEffect::DashType dashType = pathEffect->asADash(&dashInfo); in apply_paint_patheffect()981 dashInfo.fIntervals = (SkScalar*) sk_malloc_throw(dashInfo.fCount * sizeof(SkScalar)); in apply_paint_patheffect()982 pathEffect->asADash(&dashInfo); in apply_paint_patheffect()985 for (int32_t i = 0; i < dashInfo.fCount; i++) { in apply_paint_patheffect()986 intervals.append(Json::Value(dashInfo.fIntervals[i])); in apply_paint_patheffect()988 sk_free(dashInfo.fIntervals); in apply_paint_patheffect()990 dashing[SKDEBUGCANVAS_ATTRIBUTE_PHASE] = dashInfo.fPhase; in apply_paint_patheffect()