/third_party/skia/src/shaders/gradients/ |
H A 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 in find() [all...] |
H A D | Sk4fLinearGradient.cpp | 98 fIntervals.init(shader, rec.fDstColorSpace, shader.fTileMode, 101 SkASSERT(fIntervals->count() > 0); 102 fCachedInterval = fIntervals->begin(); 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 in findInterval() [all...] |
H A D | Sk4fGradientBase.h | 48 const BufferType* operator->() const { return &fIntervals; } 51 BufferType fIntervals; 65 Sk4fGradientIntervalBuffer fIntervals;
|
/third_party/skia/src/effects/ |
H A 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[ in onAsPoints() [all...] |
H A D | SkDashImpl.h | 37 SkScalar* fIntervals; member in SkDashImpl
|
/third_party/skia/src/gpu/ |
H A D | GrStyle.h | 133 return fDashInfo.fIntervals.count(); in dashIntervalCnt() 137 return fDashInfo.fIntervals.get(); in dashIntervals() 196 fIntervals.reset(that.fIntervals.count()); in operator =() 197 sk_careful_memcpy(fIntervals.get(), that.fIntervals.get(), in operator =() 198 sizeof(SkScalar) * that.fIntervals.count()); in operator =() 203 fIntervals.reset(0); in reset() 207 SkAutoSTArray<4, SkScalar> fIntervals; member
|
H A 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()
|
H A 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()
|
H A D | GrTestUtils.h | 93 SkAutoTArray<SkScalar> fIntervals; member in GrTest::TestDashPathEffect
|
/third_party/skia/tests/ |
H A 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()
|
H A 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/ |
H A 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]) { 390 startPts[1].fX = std::min(startPts[0].fX + draw.fIntervals[0] - draw.fPhase, 396 startAdj = draw.fIntervals[0] + draw.fIntervals[1] - draw.fPhase; 402 startAdj += calc_start_adjustment(draw.fIntervals, dra [all...] |
/third_party/skia/include/core/ |
H A 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/ |
H A D | FillStroke.cpp | 102 fIntervals.resize(interval_count, 0); in DashAdapter() 107 ? &fIntervals[i] in DashAdapter() 117 this->node()->setIntervals(fIntervals); variable 120 std::vector<ScalarValue> fIntervals; member in skottie::internal::__anon18576::final
|
/third_party/skia/bench/ |
H A 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));
|
/third_party/skia/modules/sksg/include/ |
H A D | SkSGGeometryEffect.h | 108 SG_ATTRIBUTE(Intervals, std::vector<float>, fIntervals) 116 std::vector<float> fIntervals; member in sksg::final
|
/third_party/skia/src/utils/ |
H A D | SkDashPath.cpp | 442 if (!ValidDashPath(info.fPhase, info.fIntervals, info.fCount)) { 448 CalcDashParameters(info.fPhase, info.fIntervals, info.fCount, 450 return InternalFilter(dst, src, rec, cullRect, info.fIntervals, info.fCount, initialDashLength,
|
/third_party/skia/modules/sksg/src/ |
H A D | SkSGGeometryEffect.cpp | 123 if (const auto dash_patheffect = make_dash(fIntervals, fPhase)) { in onRevalidateEffect()
|
/third_party/skia/tools/debugger/ |
H A 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()
|