/third_party/skia/src/effects/ |
D | SkDashPathEffect.cpp | 27 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 …]
|
D | SkDashImpl.h | 37 SkScalar* fIntervals; variable
|
/third_party/skia/src/shaders/gradients/ |
D | Sk4fGradientBase.cpp | 188 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 …]
|
D | Sk4fLinearGradient.cpp | 98 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 …]
|
D | Sk4fGradientBase.h | 48 const BufferType* operator->() const { return &fIntervals; } 51 BufferType fIntervals; 65 Sk4fGradientIntervalBuffer fIntervals;
|
/third_party/skia/src/gpu/ |
D | GrStyle.h | 133 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
|
D | GrStyle.cpp | 109 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()
|
D | GrTestUtils.cpp | 289 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()
|
D | GrTestUtils.h | 93 SkAutoTArray<SkScalar> fIntervals; variable
|
/third_party/skia/tests/ |
D | AsADashTest.cpp | 49 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()
|
D | ResourceAllocatorTest.cpp | 358 SkTArray<Interval> fIntervals; member 400 for (auto& interval : test.fIntervals) { in memory_budget_test() 494 for (Interval& interval : test.fIntervals) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
/third_party/skia/src/gpu/ops/ |
D | DashOp.cpp | 186 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/skia/include/core/ |
D | SkPathEffect.h | 59 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/skia/modules/skottie/src/layers/shapelayer/ |
D | FillStroke.cpp | 102 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::__anon1e6219170111::DashAdapter
|
/third_party/skia/bench/ |
D | DashBench.cpp | 35 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/ |
D | SkSGGeometryEffect.h | 108 SG_ATTRIBUTE(Intervals, std::vector<float>, fIntervals) in SG_ATTRIBUTE() argument 116 std::vector<float> fIntervals; variable
|
/third_party/skia/src/utils/ |
D | SkDashPath.cpp | 442 if (!ValidDashPath(info.fPhase, info.fIntervals, info.fCount)) { in FilterDashPath() 448 CalcDashParameters(info.fPhase, info.fIntervals, info.fCount, in FilterDashPath() 450 return InternalFilter(dst, src, rec, cullRect, info.fIntervals, info.fCount, initialDashLength, in FilterDashPath()
|
/third_party/skia/modules/sksg/src/ |
D | SkSGGeometryEffect.cpp | 123 if (const auto dash_patheffect = make_dash(fIntervals, fPhase)) { in onRevalidateEffect()
|
/third_party/skia/tools/debugger/ |
D | DrawCommand.cpp | 854 dashInfo.fIntervals = (SkScalar*)sk_malloc_throw(dashInfo.fCount * sizeof(SkScalar)); in apply_paint_patheffect() 859 writer.appendFloat(dashInfo.fIntervals[i]); in apply_paint_patheffect() 862 sk_free(dashInfo.fIntervals); in apply_paint_patheffect()
|