Lines Matching refs:fx

181     unsigned fi = SkGradFixedToFixed(fx) >> SkGradientShaderBase::kCache32Shift; \
183 fx += dx; \
190 typedef void (*LinearShadeProc)(TileProc proc, SkGradFixed dx, SkGradFixed fx,
197 void shadeSpan_linear_vertical_lerp(TileProc proc, SkGradFixed dx, SkGradFixed fx, in shadeSpan_linear_vertical_lerp() argument
204 unsigned fullIndex = proc(SkGradFixedToFixed(fx)); in shadeSpan_linear_vertical_lerp()
220 void shadeSpan_linear_clamp(TileProc proc, SkGradFixed dx, SkGradFixed fx, in shadeSpan_linear_clamp() argument
225 range.init(fx, dx, count, 0, SkGradientShaderBase::kCache32Count - 1); in shadeSpan_linear_clamp()
237 fx = range.fFx1; in shadeSpan_linear_clamp()
258 void shadeSpan_linear_mirror(TileProc proc, SkGradFixed dx, SkGradFixed fx, in shadeSpan_linear_mirror() argument
263 unsigned fi = mirror_8bits(SkGradFixedToFixed(fx) >> 8); in shadeSpan_linear_mirror()
265 fx += dx; in shadeSpan_linear_mirror()
271 void shadeSpan_linear_repeat(TileProc proc, SkGradFixed dx, SkGradFixed fx, in shadeSpan_linear_repeat() argument
276 unsigned fi = repeat_8bits(SkGradFixedToFixed(fx) >> 8); in shadeSpan_linear_repeat()
278 fx += dx; in shadeSpan_linear_repeat()
310 SkGradFixed dx, fx = SkScalarToGradFixed(srcPt.fX); in shadeSpan() local
331 (*shadeProc)(proc, dx, fx, dstC, cache, toggle, count); in shadeSpan()
569 static Sk4f lerp_color(float fx, const SkLinearGradient::LinearGradientContext::Rec* rec) { in lerp_color() argument
570 SkASSERT(fx >= rec[0].fPos); in lerp_color()
571 SkASSERT(fx <= rec[1].fPos); in lerp_color()
578 const float t = (fx - p0) * scale; in lerp_color()
618 float fx, float dx, float invDx, in shade4_dx_clamp() argument
628 if (fx < 0) { in shade4_dx_clamp()
629 int n = SkTMin(SkFloatToIntFloor(-fx * invDx) + 1, count); in shade4_dx_clamp()
633 fx += n * dx; in shade4_dx_clamp()
634 SkASSERT(0 == count || fx >= 0); in shade4_dx_clamp()
640 if (fx > 1) { in shade4_dx_clamp()
641 int n = SkTMin(SkFloatToIntFloor((1 - fx) * invDx) + 1, count); in shade4_dx_clamp()
645 fx += n * dx; in shade4_dx_clamp()
646 SkASSERT(0 == count || fx <= 1); in shade4_dx_clamp()
663 if (fx >= 1) { in shade4_dx_clamp()
668 if (fx <= 0) { in shade4_dx_clamp()
675 r = find_forward(r, fx); in shade4_dx_clamp()
677 r = find_backward(r, fx); in shade4_dx_clamp()
686 const float t = (fx - p0) * scale; in shade4_dx_clamp()
692 n = SkTMin((int)((p1 - fx) * invDx) + 1, count); in shade4_dx_clamp()
694 n = SkTMin((int)((p0 - fx) * invDx) + 1, count); in shade4_dx_clamp()
697 fx += n * dx; in shade4_dx_clamp()
701 fx = SkTMax(fx, p1); in shade4_dx_clamp()
703 fx = SkTMin(fx, p0); in shade4_dx_clamp()
726 float fx = srcPt.x(); in shade4_clamp() local
748 const float pinFx = SkTPin(fx, 0.0f, 1.0f); in shade4_clamp()
760 this->shade4_dx_clamp<true, true>(dstC, count, fx, dx, invDx, dither); in shade4_clamp()
762 this->shade4_dx_clamp<false, true>(dstC, count, fx, dx, invDx, dither); in shade4_clamp()
766 this->shade4_dx_clamp<true, false>(dstC, count, fx, dx, invDx, dither); in shade4_clamp()
768 this->shade4_dx_clamp<false, false>(dstC, count, fx, dx, invDx, dither); in shade4_clamp()