Home
last modified time | relevance | path

Searched refs:fIntervals (Results 1 – 16 of 16) sorted by relevance

/external/skia/src/gpu/
DGrStrokeInfo.h39 fIntervals.reset(src.getDashCount()); in INHERITED()
40 memcpy(fIntervals.get(), src.fIntervals.get(), fIntervals.count() * sizeof(SkScalar)); in INHERITED()
62 fIntervals.reset(other.getDashCount());
63 memcpy(fIntervals.get(), other.fIntervals.get(), fIntervals.count() * sizeof(SkScalar));
77 fIntervals.count() != other.fIntervals.count() || in hasEqualEffect()
78 memcmp(fIntervals.get(), other.fIntervals.get(), in hasEqualEffect()
79 fIntervals.count() * sizeof(SkScalar)) != 0) { in hasEqualEffect()
96 fIntervals.reset(dashInfo.fCount); in setDashInfo()
97 dashInfo.fIntervals = fIntervals.get(); in setDashInfo()
113 fIntervals.reset(info.fCount); in setDashInfo()
[all …]
DGrStrokeInfo.cpp25 info.fIntervals = fIntervals.get(); in applyDashToPath()
26 info.fCount = fIntervals.count(); in applyDashToPath()
30 if (all_dash_intervals_zero(fIntervals.get(), fIntervals.count())) { in applyDashToPath()
DGrTestUtils.cpp247 dashInfo.fIntervals = new SkScalar[dashInfo.fCount]; in TestStrokeInfo()
250 dashInfo.fIntervals[i] = random->nextRangeScalar(SkDoubleToScalar(0.01), in TestStrokeInfo()
252 sum += dashInfo.fIntervals[i]; in TestStrokeInfo()
256 delete[] dashInfo.fIntervals; in TestStrokeInfo()
/external/skia/src/effects/gradients/
DSk4fGradientBase.cpp154 fIntervals.emplace_back(clamp_color, clamp_pos, in GradientShaderBase4fContext()
170 fIntervals.emplace_back( in GradientShaderBase4fContext()
186 fIntervals.emplace_back( in GradientShaderBase4fContext()
198 fIntervals.back().fP1 = last_pos; in GradientShaderBase4fContext()
206 fIntervals.emplace_back(clamp_color, last_pos, in GradientShaderBase4fContext()
210 const int count = fIntervals.count(); in GradientShaderBase4fContext()
213 const Interval& interval = fIntervals[i]; in GradientShaderBase4fContext()
218 fIntervals.emplace_back(c, dc * Sk4f(-1), 2 - p1, 2 - p0); in GradientShaderBase4fContext()
228 SkASSERT(fIntervals.count() == count * 2) in GradientShaderBase4fContext()
230 SkTSwap(fIntervals[i], fIntervals[count + i]); in GradientShaderBase4fContext()
[all …]
DSk4fGradientBase.h47 SkSTArray<8, Interval, true> fIntervals; variable
DSk4fLinearGradient.cpp231 LinearIntervalProcessor<DstType, tileMode> proc(fIntervals.begin(), in shadeSpanInternal()
232 fIntervals.end() - 1, in shadeSpanInternal()
/external/skia/src/effects/
DSkDashPathEffect.cpp23 fIntervals = (SkScalar*)sk_malloc_throw(sizeof(SkScalar) * count); in SkDashPathEffect()
27 fIntervals[i] = intervals[i]; in SkDashPathEffect()
31 SkDashPath::CalcDashParameters(phase, fIntervals, fCount, in SkDashPathEffect()
36 sk_free(fIntervals); in ~SkDashPathEffect()
41 return SkDashPath::FilterDashPath(dst, src, rec, cullRect, fIntervals, fCount, in filterPath()
175 !SkScalarNearlyEqual(fIntervals[0], fIntervals[1]) || in asPoints()
176 !SkScalarIsInt(fIntervals[0]) || in asPoints()
177 !SkScalarIsInt(fIntervals[1])) { in asPoints()
215 results->fSize.set(SkScalarHalf(fIntervals[0]), SkScalarHalf(rec.getWidth())); in asPoints()
218 results->fSize.set(SkScalarHalf(rec.getWidth()), SkScalarHalf(fIntervals[0])); in asPoints()
[all …]
/external/skia/tests/
DAsADashTest.cpp47 info.fIntervals = intervals.get(); in DEF_TEST()
49 REPORTER_ASSERT(reporter, inIntervals[0] == info.fIntervals[0]); in DEF_TEST()
50 REPORTER_ASSERT(reporter, inIntervals[1] == info.fIntervals[1]); in DEF_TEST()
51 REPORTER_ASSERT(reporter, inIntervals[2] == info.fIntervals[2]); in DEF_TEST()
52 REPORTER_ASSERT(reporter, inIntervals[3] == info.fIntervals[3]); in DEF_TEST()
/external/skia/src/gpu/effects/
DGrDashingEffect.cpp259 SkScalar fIntervals[2]; member
320 memcpy(fIntervals, geo.fIntervals, sizeof(geo.fIntervals)); in DashDraw()
324 SkScalar fIntervals[2]; member
412 if (draw.fPhase > 0 && draw.fPhase < draw.fIntervals[0]) { in onPrepareDraws()
416 startPts[1].fX = SkMinScalar(startPts[0].fX + draw.fIntervals[0] - draw.fPhase, in onPrepareDraws()
422 startAdj = draw.fIntervals[0] + draw.fIntervals[1] - draw.fPhase; in onPrepareDraws()
428 startAdj += calc_start_adjustment(draw.fIntervals, draw.fPhase); in onPrepareDraws()
434 SkScalar endAdj = calc_end_adjustment(draw.fIntervals, draw.fPtsRot, draw.fPhase, in onPrepareDraws()
448 if (0 == endAdj && endingInterval != draw.fIntervals[0]) { in onPrepareDraws()
458 endAdj = endingInterval + draw.fIntervals[1]; in onPrepareDraws()
[all …]
/external/skia/bench/
DDashBench.cpp36 SkTDArray<SkScalar> fIntervals; member in DashBench
44 fIntervals.append(count, intervals); in DashBench()
46 fIntervals[i] *= width; in DashBench()
75 paint.setPathEffect(SkDashPathEffect::Create(fIntervals.begin(), in onDraw()
76 fIntervals.count(), 0))->unref(); in onDraw()
/external/skia/include/core/
DSkPathEffect.h120 DashInfo() : fIntervals(NULL), fCount(0), fPhase(0) {} in DashInfo()
122 SkScalar* fIntervals; //!< Length of on/off intervals for dashed lines member
/external/skia/include/effects/
DSkDashPathEffect.h63 SkScalar* fIntervals;
/external/skia/src/utils/
DSkDashPath.cpp326 CalcDashParameters(info.fPhase, info.fIntervals, info.fCount, in FilterDashPath()
328 return FilterDashPath(dst, src, rec, cullRect, info.fIntervals, info.fCount, initialDashLength, in FilterDashPath()
DSkLua.cpp306 this->pushArrayScalar(info.fIntervals, info.fCount, "intervals"); in pushDash()
1312 info.fIntervals = intervals.get(); in lpatheffect_asADash()
/external/skia/tools/json/
DSkJSONCanvas.cpp369 dashInfo.fIntervals = (SkScalar*) sk_malloc_throw(dashInfo.fCount * sizeof(SkScalar)); in apply_paint_patheffect()
374 intervals.append(Json::Value(dashInfo.fIntervals[i])); in apply_paint_patheffect()
376 free(dashInfo.fIntervals); in apply_paint_patheffect()
/external/skia/tools/debugger/
DSkDrawCommand.cpp981 dashInfo.fIntervals = (SkScalar*) sk_malloc_throw(dashInfo.fCount * sizeof(SkScalar)); 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()