Home
last modified time | relevance | path

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

12

/third_party/skia/src/effects/
DSkDashPathEffect.cpp27 fIntervals = (SkScalar*)sk_malloc_throw(sizeof(SkScalar) * count); in SkDashImpl()
30 fIntervals[i] = intervals[i]; in SkDashImpl()
34 SkDashPath::CalcDashParameters(phase, fIntervals, fCount, in SkDashImpl()
39 sk_free(fIntervals); in ~SkDashImpl()
44 return SkDashPath::InternalFilter(dst, src, rec, cullRect, fIntervals, fCount, in onFilterPath()
179 !SkScalarNearlyEqual(fIntervals[0], fIntervals[1]) || in onAsPoints()
180 !SkScalarIsInt(fIntervals[0]) || in onAsPoints()
181 !SkScalarIsInt(fIntervals[1])) { in onAsPoints()
219 results->fSize.set(SkScalarHalf(fIntervals[0]), SkScalarHalf(rec.getWidth())); in onAsPoints()
222 results->fSize.set(SkScalarHalf(rec.getWidth()), SkScalarHalf(fIntervals[0])); in onAsPoints()
[all …]
/third_party/flutter/skia/src/effects/
DSkDashPathEffect.cpp27 fIntervals = (SkScalar*)sk_malloc_throw(sizeof(SkScalar) * count); in SkDashImpl()
30 fIntervals[i] = intervals[i]; in SkDashImpl()
34 SkDashPath::CalcDashParameters(phase, fIntervals, fCount, in SkDashImpl()
39 sk_free(fIntervals); in ~SkDashImpl()
44 return SkDashPath::InternalFilter(dst, src, rec, cullRect, fIntervals, fCount, in onFilterPath()
179 !SkScalarNearlyEqual(fIntervals[0], fIntervals[1]) || in onAsPoints()
180 !SkScalarIsInt(fIntervals[0]) || in onAsPoints()
181 !SkScalarIsInt(fIntervals[1])) { in onAsPoints()
219 results->fSize.set(SkScalarHalf(fIntervals[0]), SkScalarHalf(rec.getWidth())); in onAsPoints()
222 results->fSize.set(SkScalarHalf(rec.getWidth()), SkScalarHalf(fIntervals[0])); in onAsPoints()
[all …]
DSkDashImpl.h30 SkScalar* fIntervals;
/third_party/skia/src/shaders/gradients/
DSk4fGradientBase.cpp188 fIntervals.reset(); in init()
206 fIntervals.emplace_back(clamp_color, clamp_pos, in init()
211 &fIntervals); in init()
217 SkASSERT(fIntervals.empty() || fIntervals.back().fT1 == t0); in init()
219 fIntervals.emplace_back(pack_color(c0, premulColors, componentScale), t0, in init()
228 fIntervals.emplace_back(clamp_color, last_pos, in init()
233 &fIntervals); in init()
239 const auto* i0 = fIntervals.begin(); in find()
240 const auto* i1 = fIntervals.end() - 1; in find()
263 SkASSERT(prev >= fIntervals.begin() && prev < fIntervals.end()); in findNext()
[all …]
DSk4fLinearGradient.cpp98 fIntervals.init(shader, rec.fDstColorSpace, shader.fTileMode, in LinearGradient4fContext()
101 SkASSERT(fIntervals->count() > 0); in LinearGradient4fContext()
102 fCachedInterval = fIntervals->begin(); in LinearGradient4fContext()
107 SkASSERT(in_range(fx, fIntervals->front().fT0, fIntervals->back().fT1)); in findInterval()
111 SkASSERT(fCachedInterval >= fIntervals->begin()); in findInterval()
112 SkASSERT(fCachedInterval < fIntervals->end()); in findInterval()
116 if (fCachedInterval >= fIntervals->end()) { in findInterval()
117 fCachedInterval = fIntervals->begin(); in findInterval()
118 } else if (fCachedInterval < fIntervals->begin()) { in findInterval()
119 fCachedInterval = fIntervals->end() - 1; in findInterval()
[all …]
DSk4fGradientBase.h48 const BufferType* operator->() const { return &fIntervals; }
51 BufferType fIntervals;
65 Sk4fGradientIntervalBuffer fIntervals;
/third_party/flutter/skia/src/shaders/gradients/
DSk4fGradientBase.cpp188 fIntervals.reset(); in init()
206 fIntervals.emplace_back(clamp_color, clamp_pos, in init()
211 &fIntervals); in init()
217 SkASSERT(fIntervals.empty() || fIntervals.back().fT1 == t0); in init()
219 fIntervals.emplace_back(pack_color(c0, premulColors, componentScale), t0, in init()
228 fIntervals.emplace_back(clamp_color, last_pos, in init()
233 &fIntervals); in init()
239 const auto* i0 = fIntervals.begin(); in find()
240 const auto* i1 = fIntervals.end() - 1; in find()
263 SkASSERT(prev >= fIntervals.begin() && prev < fIntervals.end()); in findNext()
[all …]
DSk4fLinearGradient.cpp97 fIntervals.init(shader, rec.fDstColorSpace, shader.fTileMode, in LinearGradient4fContext()
100 SkASSERT(fIntervals->count() > 0); in LinearGradient4fContext()
101 fCachedInterval = fIntervals->begin(); in LinearGradient4fContext()
106 SkASSERT(in_range(fx, fIntervals->front().fT0, fIntervals->back().fT1)); in findInterval()
110 SkASSERT(fCachedInterval >= fIntervals->begin()); in findInterval()
111 SkASSERT(fCachedInterval < fIntervals->end()); in findInterval()
115 if (fCachedInterval >= fIntervals->end()) { in findInterval()
116 fCachedInterval = fIntervals->begin(); in findInterval()
117 } else if (fCachedInterval < fIntervals->begin()) { in findInterval()
118 fCachedInterval = fIntervals->end() - 1; in findInterval()
[all …]
DSk4fGradientBase.h48 const BufferType* operator->() const { return &fIntervals; }
51 BufferType fIntervals;
65 Sk4fGradientIntervalBuffer fIntervals;
/third_party/skia/src/gpu/
DGrStyle.h133 return fDashInfo.fIntervals.count(); in dashIntervalCnt()
137 return fDashInfo.fIntervals.get(); in dashIntervals()
196 fIntervals.reset(that.fIntervals.count());
197 sk_careful_memcpy(fIntervals.get(), that.fIntervals.get(),
198 sizeof(SkScalar) * that.fIntervals.count());
203 fIntervals.reset(0); in reset()
207 SkAutoSTArray<4, SkScalar> fIntervals; member
DGrStyle.cpp109 SkASSERT(0 == fDashInfo.fIntervals.count()); in initPathEffect()
118 fDashInfo.fIntervals.reset(info.fCount); in initPathEffect()
120 info.fIntervals = fDashInfo.fIntervals.get(); in initPathEffect()
143 const SkScalar* intervals = fDashInfo.fIntervals.get(); in applyPathEffect()
144 int intervalCnt = fDashInfo.fIntervals.count(); in applyPathEffect()
DGrTestUtils.cpp289 fIntervals.reset(count); in TestDashPathEffect()
290 memcpy(fIntervals.get(), intervals, count * sizeof(SkScalar)); in TestDashPathEffect()
297 return SkDashPath::InternalFilter(dst, src, rec, cullRect, fIntervals.get(), fCount, in onFilterPath()
303 if (info->fCount >= fCount && info->fIntervals) { in onAsADash()
304 memcpy(info->fIntervals, fIntervals.get(), fCount * sizeof(SkScalar)); in onAsADash()
/third_party/flutter/skia/src/gpu/
DGrStyle.h132 return fDashInfo.fIntervals.count(); in dashIntervalCnt()
136 return fDashInfo.fIntervals.get(); in dashIntervals()
194 fIntervals.reset(that.fIntervals.count());
195 sk_careful_memcpy(fIntervals.get(), that.fIntervals.get(),
196 sizeof(SkScalar) * that.fIntervals.count());
201 fIntervals.reset(0); in reset()
205 SkAutoSTArray<4, SkScalar> fIntervals; member
DGrStyle.cpp109 SkASSERT(0 == fDashInfo.fIntervals.count()); in initPathEffect()
118 fDashInfo.fIntervals.reset(info.fCount); in initPathEffect()
120 info.fIntervals = fDashInfo.fIntervals.get(); in initPathEffect()
138 const SkScalar* intervals = fDashInfo.fIntervals.get(); in applyPathEffect()
139 int intervalCnt = fDashInfo.fIntervals.count(); in applyPathEffect()
DGrTestUtils.cpp284 fIntervals.reset(count); in TestDashPathEffect()
285 memcpy(fIntervals.get(), intervals, count * sizeof(SkScalar)); in TestDashPathEffect()
292 return SkDashPath::InternalFilter(dst, src, rec, cullRect, fIntervals.get(), fCount, in onFilterPath()
298 if (info->fCount >= fCount && info->fIntervals) { in onAsADash()
299 memcpy(info->fIntervals, fIntervals.get(), fCount * sizeof(SkScalar)); in onAsADash()
/third_party/flutter/skia/tests/
DAsADashTest.cpp49 info.fIntervals = intervals.get(); in DEF_TEST()
51 REPORTER_ASSERT(reporter, inIntervals[0] == info.fIntervals[0]); in DEF_TEST()
52 REPORTER_ASSERT(reporter, inIntervals[1] == info.fIntervals[1]); in DEF_TEST()
53 REPORTER_ASSERT(reporter, inIntervals[2] == info.fIntervals[2]); in DEF_TEST()
54 REPORTER_ASSERT(reporter, inIntervals[3] == info.fIntervals[3]); in DEF_TEST()
/third_party/skia/tests/
DAsADashTest.cpp49 info.fIntervals = intervals.get(); in DEF_TEST()
51 REPORTER_ASSERT(reporter, inIntervals[0] == info.fIntervals[0]); in DEF_TEST()
52 REPORTER_ASSERT(reporter, inIntervals[1] == info.fIntervals[1]); in DEF_TEST()
53 REPORTER_ASSERT(reporter, inIntervals[2] == info.fIntervals[2]); in DEF_TEST()
54 REPORTER_ASSERT(reporter, inIntervals[3] == info.fIntervals[3]); in DEF_TEST()
/third_party/skia/src/gpu/ops/
DDashOp.cpp186 SkScalar fIntervals[2]; member
264 memcpy(fIntervals, geo.fIntervals, sizeof(geo.fIntervals)); in DashDraw()
268 SkScalar fIntervals[2]; member
386 if (draw.fPhase > 0 && draw.fPhase < draw.fIntervals[0]) { in onPrepareDraws()
390 startPts[1].fX = std::min(startPts[0].fX + draw.fIntervals[0] - draw.fPhase, in onPrepareDraws()
396 startAdj = draw.fIntervals[0] + draw.fIntervals[1] - draw.fPhase; in onPrepareDraws()
402 startAdj += calc_start_adjustment(draw.fIntervals, draw.fPhase); in onPrepareDraws()
408 SkScalar endAdj = calc_end_adjustment(draw.fIntervals, draw.fPtsRot, draw.fPhase, in onPrepareDraws()
422 if (0 == endAdj && endingInterval != draw.fIntervals[0]) { in onPrepareDraws()
432 endAdj = endingInterval + draw.fIntervals[1]; in onPrepareDraws()
[all …]
/third_party/flutter/skia/src/gpu/ops/
DGrDashOp.cpp207 SkScalar fIntervals[2]; member
239 geo.fIntervals[0], in dumpInfo()
240 geo.fIntervals[1], in dumpInfo()
309 memcpy(fIntervals, geo.fIntervals, sizeof(geo.fIntervals)); in DashDraw()
313 SkScalar fIntervals[2]; member
401 if (draw.fPhase > 0 && draw.fPhase < draw.fIntervals[0]) { in onPrepareDraws()
405 startPts[1].fX = SkMinScalar(startPts[0].fX + draw.fIntervals[0] - draw.fPhase, in onPrepareDraws()
411 startAdj = draw.fIntervals[0] + draw.fIntervals[1] - draw.fPhase; in onPrepareDraws()
417 startAdj += calc_start_adjustment(draw.fIntervals, draw.fPhase); in onPrepareDraws()
423 SkScalar endAdj = calc_end_adjustment(draw.fIntervals, draw.fPtsRot, draw.fPhase, in onPrepareDraws()
[all …]
/third_party/skia/include/core/
DSkPathEffect.h59 DashInfo() : fIntervals(nullptr), fCount(0), fPhase(0) {} in DashInfo()
61 : fIntervals(intervals), fCount(count), fPhase(phase) {} in DashInfo()
63 SkScalar* fIntervals; //!< Length of on/off intervals for dashed lines member
/third_party/flutter/skia/include/core/
DSkPathEffect.h134 DashInfo() : fIntervals(nullptr), fCount(0), fPhase(0) {} in DashInfo()
136 : fIntervals(intervals), fCount(count), fPhase(phase) {} in DashInfo()
138 SkScalar* fIntervals; //!< Length of on/off intervals for dashed lines member
/third_party/skia/modules/skottie/src/layers/shapelayer/
DFillStroke.cpp102 fIntervals.resize(interval_count, 0); in DashAdapter()
107 ? &fIntervals[i] in DashAdapter()
117 this->node()->setIntervals(fIntervals); in onSync()
120 std::vector<ScalarValue> fIntervals; member in skottie::internal::__anon0831ac760111::DashAdapter
/third_party/flutter/skia/bench/
DDashBench.cpp35 SkTDArray<SkScalar> fIntervals; member in DashBench
43 fIntervals.append(count, intervals); in DashBench()
45 fIntervals[i] *= width; in DashBench()
74 paint.setPathEffect(SkDashPathEffect::Make(fIntervals.begin(), fIntervals.count(), 0)); in onDraw()
/third_party/skia/bench/
DDashBench.cpp35 SkTDArray<SkScalar> fIntervals; member in DashBench
43 fIntervals.append(count, intervals); in DashBench()
45 fIntervals[i] *= width; in DashBench()
74 paint.setPathEffect(SkDashPathEffect::Make(fIntervals.begin(), fIntervals.count(), 0)); in onDraw()
/third_party/skia/modules/sksg/include/
DSkSGGeometryEffect.h108 SG_ATTRIBUTE(Intervals, std::vector<float>, fIntervals) in SG_ATTRIBUTE() argument
116 std::vector<float> fIntervals; variable

12